handle all chromadb operations
There should be a file in task_queue folder called 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
write(embedding, text, metadata) - will write the embeddings, text and metadata to chromadb add any parameters required but mention in the comment
retrieve(embedding, filter=None) - retrieve to n closest embeddings, along with their metadata mention the format in the comments
handle all chromadb operations
There should be a file in
task_queuefolder calleddb.py3 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