Skip to content

Visualising Embeddings #10173

Answered by dosubot bot
gzguevara asked this question in Q&A
Discussion options

You must be logged in to vote

🤖

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:

  1. Accessing the Embeddings: The embeddings are stored in the embedding_dict dictionary of the SimpleVectorStoreData 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 the SimpleVectorStore class. Here's a simple example:

    vector_store = SimpleVectorStore.from_persist_path(persist_path)
    embeddings = vector_store

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by gzguevara
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant