We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f545d1 commit b3f062eCopy full SHA for b3f062e
llm-complete-guide/utils/llm_utils.py
@@ -419,6 +419,10 @@ def get_topn_similar_docs_pinecone(
419
Returns:
420
List[Tuple]: List of tuples containing document content and similarity scores.
421
"""
422
+ # Convert numpy array to list if needed
423
+ if isinstance(query_embedding, np.ndarray):
424
+ query_embedding = query_embedding.tolist()
425
+
426
# Query the index
427
results = pinecone_index.query(
428
vector=query_embedding,
0 commit comments