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:
Stan Girard 2024-05-03 15:28:07 +02:00 committed by GitHub
parent 6bf78d67bb
commit 05cb0f71d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 7 deletions

View File

@ -1,7 +1,7 @@
on:
"on":
push:
tags:
- "v*"
branches:
- main
name: Deploy to quivr-com-backend
jobs:
porter-deploy:

View File

@ -1,7 +1,7 @@
on:
"on":
push:
tags:
- "v*"
branches:
- main
name: Deploy to quivr-com
jobs:
porter-deploy:

View File

@ -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)