-
I would like to visualise the embeddings with UMAP and plot them against my queries to see which chuck have been retrieved. Unfortunately, I cannot access the data from index.storage_context.vector_store. Moreover, I am using HuggingFaceEmbedding(model_name="sentence-transformers/all-MiniLM-L6-v2"). And the when i query the index and look at the nodes, they do no contain the embedding. Any idea how I could approach this visualisation? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
🤖 Hey there @gzguevara! Good to see you again. Let's dive into this new challenge together. Based on the information you've provided, it seems like you're trying to access the embeddings stored in
I hope this helps! If you have any further questions, please let me know. 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.
🤖
Hey there @gzguevara! Good to see you again. Let's dive into this new challenge together.
Based on the information you've provided, it seems like you're trying to access the embeddings stored in
index.storage_context.vector_store
and visualize them using UMAP. Here's how you can approach this:Accessing the Embeddings: The embeddings are stored in the
embedding_dict
dictionary of theSimpleVectorStoreData
class. The key is the node_id and the value is the corresponding embedding. You can access this dictionary directly if you have an instance of theSimpleVectorStore
class. Here's a simple example: