Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feat] Add MetaData LLM call #16

Open
pkarw opened this issue Nov 4, 2024 · 0 comments
Open

[feat] Add MetaData LLM call #16

pkarw opened this issue Nov 4, 2024 · 0 comments
Labels

Comments

@pkarw
Copy link
Contributor

pkarw commented Nov 4, 2024

If we add another, optional LLM call - for example for getting the tags and summary of the file generated in the main LLM call - we could use these data as a naming strategy for the storage adapters - related to #10

If anyone is interested in making this feature happen - let me know I can specify the details

@pkarw pkarw added the feature label Nov 4, 2024
chavan-arvind added a commit to chavan-arvind/pdf-extract-api that referenced this issue Nov 5, 2024
Related to CatchTheTornado#16

Add an optional LLM call for generating tags and summary of the file.

* **app/main.py**
  - Add a new endpoint `/llm_tags_summary` to generate tags and summary using the LLM.
  - Update the `OllamaGenerateRequest` class to include a new field `generate_tags_summary`.
  - Update the `generate_llama` function to handle the new `generate_tags_summary` field.

* **app/tasks.py**
  - Add a new function `generate_tags_summary` to generate tags and summary using the LLM.
  - Update the `ocr_task` function to include an optional call to `generate_tags_summary` after extracting text.

* **client/cli.py**
  - Add a new command `llm_tags_summary` for generating tags and summary.
  - Update the `main` function to handle the new `llm_tags_summary` command.

* **.env.example**
  - Add a new environment variable `LLM_TAGS_SUMMARY_API_URL`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant