Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Property 'logProgress' does not exist on type 'VectorStoreIndex'.ts(2339) #617

Open
rawwerks opened this issue Mar 6, 2024 · 1 comment

Comments

@rawwerks
Copy link

rawwerks commented Mar 6, 2024

I'm trying to debug an AstraDB index with logProgress, but it's not working.

in this approach, i get: "Object literal may only specify known properties, and 'logProgress' does not exist in type 'VectorStore'."

const index = await VectorStoreIndex.fromVectorStore(astraVS, serviceContext, { logProgress: true });

in this approach, i get: "Property 'logProgress' does not exist on type 'VectorStoreIndex'."

const index = await VectorStoreIndex.fromVectorStore(astraVS, serviceContext);
index.logProgress = true;

please advise

@marcusschiesser
Copy link
Collaborator

fromVectorStore is not generating any new embeddings, it's just using the existing data in the vector store, that's why there is no logProgress function.

VectorStoreIndex.fromDocuments creates new embeddings and supports the logProgress logging

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants