mirror of
https://github.com/StanGirard/quivr.git
synced 2024-11-23 04:17:48 +03:00
feat(llama-parse): improve prompt (#2535)
# Description Please include a summary of the changes and the related issue. Please also include relevant motivation and context. ## Checklist before requesting a review Please delete options that are not relevant. - [ ] My code follows the style guidelines of this project - [ ] I have performed a self-review of my code - [ ] I have commented hard-to-understand areas - [ ] I have ideally added tests that prove my fix is effective or that my feature works - [ ] New and existing unit tests pass locally with my changes - [ ] Any dependent changes have been merged ## Screenshots (if appropriate):
This commit is contained in:
parent
6bf78d67bb
commit
05cb0f71d0
@ -1,7 +1,7 @@
|
||||
on:
|
||||
"on":
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
branches:
|
||||
- main
|
||||
name: Deploy to quivr-com-backend
|
||||
jobs:
|
||||
porter-deploy:
|
||||
|
6
.github/workflows/porter_stack_quivr-com.yml
vendored
6
.github/workflows/porter_stack_quivr-com.yml
vendored
@ -1,7 +1,7 @@
|
||||
on:
|
||||
"on":
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
branches:
|
||||
- main
|
||||
name: Deploy to quivr-com
|
||||
jobs:
|
||||
porter-deploy:
|
||||
|
@ -43,7 +43,7 @@ async def process_file(
|
||||
|
||||
parser = LlamaParse(
|
||||
result_type="markdown", # "markdown" and "text" are available
|
||||
parsing_instruction="The document might contain checkboxes, tables and others elements hard to parse. Find a way to parse them in a meaningful way. ",
|
||||
parsing_instruction="Try to extract the tables and checkboxes. Transform tables to key = value. You can duplicates Keys if needed. For example: Productions Fonts = 300 productions Fonts Company Desktop License = Yes for Maximum of 60 Licensed Desktop users For example checkboxes should be: Premium Activated = Yes License Premier = No If a checkbox is present for a table with multiple options. Say Yes for the one activated and no for the one not activated",
|
||||
)
|
||||
|
||||
document_llama_parsed = parser.load_data(document_tmp.name)
|
||||
|
Loading…
Reference in New Issue
Block a user