-
Notifications
You must be signed in to change notification settings - Fork 342
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
TLK-1249 and TLK-1250 - LlamaIndex file tool and documentation improvements #779
base: main
Are you sure you want to change the base?
TLK-1249 and TLK-1250 - LlamaIndex file tool and documentation improvements #779
Conversation
17dfb41
to
4eb7f12
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #779 +/- ##
==========================================
- Coverage 80.13% 80.13% -0.01%
==========================================
Files 238 239 +1
Lines 10378 10388 +10
==========================================
+ Hits 8316 8324 +8
- Misses 2062 2064 +2 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great to me, thank you!
…a_reader_and_doc_improvements # Conflicts: # poetry.lock # pyproject.toml
LlamaIndex file tool and documentation improvements
AI Description
This PR introduces changes to the configuration and setup documentation, as well as updates to the
src/backend/chat/custom/custom.py
andsrc/community/tools/llama_index.py
files.Configuration and Setup Documentation
docs/config_details/config_description.md
file is added, providing an explanation of the configuration parameters.docs/setup.md
file is updated to include a link to the configuration parameters explanation.src/backend/chat/custom/custom.py
get_managed_tools
function is modified to accept an optionalfull_schema
parameter.call_chat
function is updated to use theget_managed_tools
function withfull_schema=True
to retrieve managed tools with their full schema.call_chat
function now filters tools based on their category, specifically tools with theCategory.FileLoader
category.update_chat_history_with_tool_results
function is modified to remove tools based on their category, rather than their name.src/community/tools/llama_index.py
LlamaIndexUploadPDFRetriever
class is updated to use theVectorStoreIndex
class for indexing and retrieval.call
method is modified to accept actx
parameter and use it to retrieve files and user information.call
method now checks for the presence of a query and files before proceeding with retrieval.call
method retrieves files based on their IDs and user ID, ensuring that only relevant files are processed.call
method uses theStringIterableReader
to load file content, and theSentenceSplitter
to split sentences for embedding and indexing.call
method now returns an empty list if no files are retrieved or if the query is empty.New Files
src/backend/tools/utils/tools_checkers.py
: This file contains utility functions for checking tool categories and community tools.src/community/config/tools.py
: This file defines theCommunityToolName
class, which represents community tools and their configurations.