ewfian / faiss-node

Node.js bindings for faiss
https://www.npmjs.com/package/faiss-node
MIT License
107 stars 10 forks source link

Vector store initial #51

Open Genuifx opened 3 months ago

Genuifx commented 3 months ago

Describe the bug with langchain

const vectorStore = new FaissStore(new OpenAIEmbeddings());
const autogpt = AutoGPT.fromLLMAndTools(...);

autogpt.run(['goals']);
           throw new Error("Vector store not initialised yet. Try calling `fromTexts`, `fromDocuments` or `fromIndex` first.");
                  ^

Error: Vector store not initialised yet. Try calling `fromTexts`, `fromDocuments` or `fromIndex` first.

Environment:

To Reproduce FYI

Expected behavior should run

Screenshots If applicable, add screenshots to help explain your problem.

Additional context Add any other context about the problem here.