test chroma db
1.0.0
This is a simple project to test Chroma DB on a local environment as part of Python app.
virtualenv env
source env/bin/activatepip install --upgrade pip
pip install --requirement requirements.txtwrite.py script to write to the database stored locally in a filepython write.pyread.py script to make a query to the databasepython read.pyExpected output:
{'ids': [['id1', 'id2']], 'distances': [[0.7111213785443223, 1.010977553098025]], 'metadatas': [[{'source': 'my_source'}, {'source': 'my_source'}]], 'embeddings': None, 'documents': [['This is a document', 'This is another document']]}