Any way to get the raw embeddings of retrieved nodes (not just indices + similarities as pictured) when using faiss vectorstore?
Or a hack/workaround to get the raw embeddings here?
example of my current retrieval code:
from llama_index.vector_stores.types import VectorStoreQuery
vsq = VectorStoreQuery(query_embedding=item.query_embedding, similarity_top_k=item.num_results, output_fields=['embeddings'])
query_result = index.vector_store.query(query=vsq)
return query_result
and:
x = await index.as_retriever(similarity_top_k=num_results_to_retrieve).aretrieve(QueryBundle("not used", embedding=item.query_embedding))
Looking make clusters from my index, and to create the clusters i need the raw embeddings