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

Add files to LLM context. #253

Merged
merged 2 commits into from
Oct 15, 2024
Merged

Add files to LLM context. #253

merged 2 commits into from
Oct 15, 2024

Conversation

crspeller
Copy link
Member

Closes: #245

Closes: #61

Description

Adds files to the context of the context of the LLM. Any file that is supported by the server text extraction (including PDFs) should work as long as that text extraction works. For some reason that extraction doesn't work on text files so the ability to extract text files was added here.
Docs on Text extraction: https://docs.mattermost.com/collaborate/search-for-messages.html

Many files will be over the limit of your LLM or will reach the token limit set in the system console. Files that are too long will cause the prompt to be cut off at the beginning. Set the token limit of your LLM in the system console to make sure this works correctly.

Use a high token limit LLM to use this effectively, all but the latest (llama3.2) on-prem models will have issues with large files.

Copy link
Member

@jespino jespino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jespino
Copy link
Member

jespino commented Oct 15, 2024

Now that we have this, would be great to expose something like "attachment summarization"

@crspeller crspeller merged commit 013ad2f into master Oct 15, 2024
5 checks passed
@crspeller crspeller deleted the add-files-to-context branch October 15, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

💡 idea: Support for reading attached files Add ability for LLM to use files from content extraction.
2 participants