test chroma db
1.0.0
이것은 Python 앱의 일부로 지역 환경에서 Chroma DB를 테스트하는 간단한 프로젝트입니다.
virtualenv env
source env/bin/activatepip install --upgrade pip
pip install --requirement requirements.txtwrite.py 스크립트를 사용하여 파일에 로컬로 저장된 데이터베이스에 쓰기 python write.pyread.py 스크립트를 사용하여 데이터베이스에 대한 쿼리를 만듭니다. python read.py예상 출력 :
{ ' 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 ' ]]}