Open UB-AICLUB opened 1 month ago
handle all chromadb operations
There should be a file in task_queue folder called db.py
task_queue
db.py
3 functions in total
get_connection() return a connection object to our chromadb instance hard code connection parameters will set them to correct values later
get_connection()
write(embedding, text, metadata) - will write the embeddings, text and metadata to chromadb add any parameters required but mention in the comment
write(embedding, text, metadata)
retrieve(embedding, filter=None) - retrieve to n closest embeddings, along with their metadata mention the format in the comments
retrieve(embedding, filter=None)
Hey @UB-AICLUB I can take this up!
handle all chromadb operations
There should be a file in
task_queue
folder calleddb.py
3 functions in total
get_connection()
return a connection object to our chromadb instance hard code connection parameters will set them to correct values laterwrite(embedding, text, metadata)
- will write the embeddings, text and metadata to chromadb add any parameters required but mention in the commentretrieve(embedding, filter=None)
- retrieve to n closest embeddings, along with their metadata mention the format in the comments