chore: format

This commit is contained in:
Timothy Jaeryang Baek
2025-11-23 20:15:52 -05:00
parent cd008eeb50
commit 48d1e67e79
70 changed files with 2828 additions and 1864 deletions
+7 -5
View File
@@ -1468,11 +1468,13 @@ def save_docs_to_vector_db(
)
# Run async embedding in sync context
embeddings = asyncio.run(embedding_function(
list(map(lambda x: x.replace("\n", " "), texts)),
prefix=RAG_EMBEDDING_CONTENT_PREFIX,
user=user,
))
embeddings = asyncio.run(
embedding_function(
list(map(lambda x: x.replace("\n", " "), texts)),
prefix=RAG_EMBEDDING_CONTENT_PREFIX,
user=user,
)
)
log.info(f"embeddings generated {len(embeddings)} for {len(texts)} items")
items = [