TAPASxHF2 / chroma_db_indexer.py
jskinner215's picture
Upload 17 files
25fc3a2
raw
history blame contribute delete
224 Bytes
from chroma_db import ChromaDB
class ChromaDBIndexer:
def __init__(self):
self.db = ChromaDB()
def create_index(self, embeddings):
for embedding in embeddings:
self.db.insert(embedding)