Find answers from the community

Home
Members
AI made approachable
A
AI made approachable
Offline, last seen 6 months ago
Joined September 25, 2024
Hey guys. I have an issue reading the storageContext of a KeywordTableIndex:

As a test case I created ./kwstorage which just stored a file with the following content:
Plain Text
const document = new Document({text: "Hello World", id_: "test"})

If I want to get that storage the same way I get the vector storage
Plain Text
    const storageContext = await storageContextFromDefaults({
        persistDir: "./kwstorage",
    });

I get this error:
Plain Text
No valid data found at path: ./kwstorage/vector_store.json starting new store.

And of course this file is missing, as it is no vector storage.

Also how do I query the value of the id "test" later? In the example the queryEngine is being used. I like to retrieve the raw value
13 comments
L
A