iota
1.0.0

IOTA- 최소한의 로컬 임베딩 데이터베이스 .
이 프로젝트는 기존 벡터 매장에서 내가 좋아하는 기능 중 일부를 재현하면서 미니멀리즘과 단순성을 유지하기 위해 수행되었습니다.
중요한
이것은 결코 확장 가능한 것은 아니지만 소규모 프로젝트에는 충분해야합니다.
PYPI를 통해 패키지를 설치하십시오.
pip install iotadb다음은 매우 간단한 예입니다.
from iotadb import IotaDB , Document
# Define a list of documents
docs = [
Document ( text = "That is a happy dog" ),
Document ( text = "That is a very happy person" ),
Document ( text = "Today is a sunny day" )
]
# Create a collection
db = IotaDB ()
db . create_collection ( name = "my_collection" , documents = docs )
# Query documents within your collection
results = db . search ( "That is a happy person" , return_similarities = True )
for doc , score in results :
print ( f"Text: { doc . text } " )
print ( f"similarity: { score :.3f } n " ) 더 많은 예가 /examples 디렉토리에서 찾을 수 있습니다.
기여에 관심이 있으십니까? 자세한 내용은 기여 가이드로 가십시오.