Open Candoyeya opened 8 months ago
Thank you, @Candoyeya! I am surprised our tests don't cover that. Can you please open a PR for the first patch and I will take it from there 🤗
Sure, i'll work on it 👍
@Candoyeya, can you please help me with this:
import { TextLoader } from "langchain/document_loaders/fs/text";
Where do I import it from?
I've also had troubles with yarn
installation, so assembled a demo repo using only npm
and overwriting the USearch version to the most recent one at ashvardanian/usearch-langchain.
Describe the bug
I am working on a Generative AI project with the following characteristics
NodJS API TypeScript @langchain/community HuggingFaceTransformersEmbeddings OpenAIEmbeddings
Recently LangChain made an integration to be able to use USearch as a VectorStore.
Therefore I decided to carry out the following integration with the following examples.
https://js.langchain.com/docs/integrations/vectorstores/usearch
During the first tests I got the following error
Therefore it was necessary to make a patch in the
usearch.js
file within thejavascript
folder, this with the intention that it could recognize values of theBigint
type, since the validation of the line161
did not correctly recognize these values.This is the patch applied.
Now after being able to correctly validate the values for my index, I get a new error that appears on line
177
The error is the following
I hope this can serve as a guide in case anyone else is suffering with said integration.
Steps to reproduce
In a new NodeJS environment with TypeScript.
Implement the following example
Create a new index from a loader
Expected behavior
Allow the creation of an index
USearch version
2.9.0
Operating System
Mac OS 14.1.1 (23B81)
Hardware architecture
x86
Which interface are you using?
Other bindings
Contact Details
telematik_4@hotmail.com
Is there an existing issue for this?
Code of Conduct