How to view the embeddings generated by VectorStoreIndex #9156
Replies: 1 comment 2 replies
-
🤖 Hello @dhirajsuvarna, I'm Dosu, a bot designed to assist you with your queries and issues related to LlamaIndex. I'm here to help answer your questions, support you in solving bugs, or guide you on becoming a contributor. Don't worry, while we're waiting for a human maintainer, I'll do my best to assist you. Looking forward to helping you navigate through this. To view the embeddings generated by VectorStoreIndex for each node, you can modify the Here's how you can modify the def get_by_id(self, doc_id: str, **kwargs: Any) -> list:
"""Get row ids and embeddings by doc id.
Args:
doc_id (str): document id
"""
filters = {"doc_id": {"$eq": doc_id}}
return self._collection.query(
data=None,
filters=filters,
include_value=True, # Include the value (embedding) in the query
include_metadata=False,
**kwargs,
) This will return a list of tuples where each tuple contains the row id and the corresponding embedding. Please note that this modification will affect all places where You can find the original As for the structure of the VectorStoreIndex in the LlamaIndex codebase, it is a class that extends the Please let me know if you need further clarification or assistance. SourcesThis response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. If you want to continue the conversation, start your reply with @dosu-bot. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How do I see the embeddings that are generated by the VectorStoreIndex for each of the nodes.
Beta Was this translation helpful? Give feedback.
All reactions