Jeffrey (Dongkyu) Kim

Results 12 comments of Jeffrey (Dongkyu) Kim

My code looks like this. ```python def vectordb_pure(query: str, top_k: int, collection: chromadb.Collection, embedding_model: BaseEmbedding): embedded_queries = list(map(embedding_model.get_query_embedding, queries)) id_result = [] for embedded_query in embedded_queries: result = collection.query(query_embeddings=embedded_query, n_results=top_k)...

Here is `process_batch` It's just run the given task in for loop. So, it did not add any embeddings. ```python def process_batch(tasks, batch_size: int = 64) -> List[Any]: results =...