Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR has the initial functionality of querying a vectordb(using Chroma Db for now) with agentai.
A query model for Chroma looks like this ->
An example functionality of how we can do this ->
Outputs ->
({'ids': [['90834f80-0432-475e-af9b-9688215db92d', 'a3c0e748-0937-46b1-a167-5aa01a70bbac', '81bed12d-1a84-4b4b-bd09-9fa964240278']], 'distances': [[0.7584866881370544, 1.0528839826583862, 1.372355341911316]], 'metadatas': None, 'embeddings': None, 'documents': [["CHAPTER.... 1 Agricultural Practices", "In order to provide food for a large population- regular production.. patterns can be identified.", "Storage\n1.3 ......Preparation of Soil"]]}, {'query': {'query_texts': ['where does food come from'], 'k': 3, 'include': ['documents', 'distances']}}, <function query_vector_db at 0x168888400>)
The Parsing capability of document is limited to pdfs with Unstructured and Azure Document Intelligence(Form Recognizer) for now. Can expand it as needed.
Some of the code is taken from other PRs that are currently open(which doesn't have to be reviewed in this PR). Do leave a comment after merging the ones earlier than this and I'll resolve the conflicts.
Files to review:
In Docs Folder:
In Agentai folder: