Helmet
Helmet
CCConvex Community
Created by Helmet on 11/28/2023 in #support-community
How do vectorstores work on Convex with Langchain?
Additionally how can I create filter fields for multiple users? It seems convex is limited to 16 fields as well, so I'm not sure I can create a vector store for each user
9 replies
CCConvex Community
Created by Helmet on 11/28/2023 in #support-community
How do vectorstores work on Convex with Langchain?
With langchain though, I'm not sure how to filter it because usage is as follows:
// Get the vectorstore as a retriever
const vectorstore = new ConvexVectorStore(new OpenAIEmbeddings({ openAIApiKey: secretKey }), { ctx }, );
const retriever = vectorstore.asRetriever();
// Get the vectorstore as a retriever
const vectorstore = new ConvexVectorStore(new OpenAIEmbeddings({ openAIApiKey: secretKey }), { ctx }, );
const retriever = vectorstore.asRetriever();
9 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
I tried the langchain as the external package but it still gave the same error. I ended up switching to Convex's langchain wrapper for vector store and that works perfectly for my needs.
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
Do you know if there's any way to get python installed, or is that perhaps a future improvement?
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
Alright, I'll probably just use the ConvexVectorstore instead
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
I have python3 installed in my local environment so I don't think it's that
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
Does convex have python installed in the environment, or is this related to my local environment?
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
Something related to node-gyp which is used to build bindings, and python not being found
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
npm ERR! code 1
npm ERR! path /tmp/build_deps/node_modules/hnswlib-node
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@18.18.0 | linux | arm64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! cwd /tmp/build_deps/node_modules/hnswlib-node
npm ERR! gyp ERR! node -v v18.18.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok
npm ERR! code 1
npm ERR! path /tmp/build_deps/node_modules/hnswlib-node
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@18.18.0 | linux | arm64
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python Python is not set from command line or npm configuration
npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
npm ERR! gyp ERR! find Python checking if "python3" can be used
npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
npm ERR! gyp ERR! find Python checking if "python" can be used
npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python **********************************************************
npm ERR! gyp ERR! find Python You need to install the latest version of Python.
npm ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
npm ERR! gyp ERR! find Python you can try one of the following options:
npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
npm ERR! gyp ERR! find Python - Set the npm configuration variable python:
npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
npm ERR! gyp ERR! find Python For more information consult the documentation at:
npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! find Python
npm ERR! gyp ERR! configure error
npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
npm ERR! gyp ERR! cwd /tmp/build_deps/node_modules/hnswlib-node
npm ERR! gyp ERR! node -v v18.18.0
npm ERR! gyp ERR! node-gyp -v v9.4.0
npm ERR! gyp ERR! not ok
16 replies
CCConvex Community
Created by Helmet on 11/11/2023 in #support-community
Could not locate the bindings file
@Michal Srb Throwing a new error
16 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
Having to make all the db reads and whatnot
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
I haven't, looked into it and I plan to try it out. Just wondering about performance, as it stores the vectors in tables. So when using a similarity search on a table database of perhaps 1000 entries, I wonder if it will be kinda overkill
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
The js langchain vectorstore wrapper for HNSWLib imports node:path, so unless I specify "use node" it throws an error, originally described in the post above
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
If anyone has a better idea of how to manage this, feel free to let me know
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
What I ended up doing is moving the main action to a separate file with "use node"; directive instead, seems to work
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
clearMessages defined in functions.js is a Mutation function. Only actions can be defined in Node.js.
11 replies
CCConvex Community
Created by Helmet on 11/10/2023 in #support-community
Error related to Node.js (package not found on filesystem)
I used "use node"; directive at the top of the functions for convex file, but I get a different error
11 replies