If I add namespace to vectors, it doesn’t return anything when performing similarity search.
is it because I’m on a starter plan?
Hello!
Firstly, the type of plan (e.g., starter) usually doesn’t impact the function of adding namespaces to vectors or performing similarity search after doing so. That is, even with a free plan, you should be able to use this functionality.
So, if nothing is being returned, it’s likely that something else is wrong. If you could provide more specific information about how you’re adding namespaces, generating vectors, the tools or libraries you’re using for the similarity search, how the process is supposed to work, and any error messages you might be seeing, I could give more specific support.
Also, could you let me know if you’re working in a specific environment, such as a particular programming language or framework, or if you’re using a specific platform or service? Knowing more about your situation would help to identify and resolve the issue.
Hello dra, thank you. I’m using langchain js, after creating documents which are chunks of texts. I just added those documents to pinecone with namespaces by using langchain library. After adding, I just called similaritySearch from langchain library, but nothing is returned.
Hello!
Here are several points for you to check regarding your issue:
-
Has the index been correctly added to Pinecone? Please make sure the addition process has been properly performed.
-
Is there any issue with your code itself? In particular, verify whether the implementation of the
similaritySearch
function call is correct. If there are any uncertainties, it could be helpful to have Langchain’s AI chatbot check your specific implementation.
- Langchain’s official Discord server is quite active, with numerous questions and answers exchanged that could help solve your issue. Consider sharing your problem there and seeking advice from other developers.
https://twitter.com/LangChainAI
-
Is there any issue with the version of the library you’re using? Specifically, if it’s too old or too new, some functions might not work properly. If necessary, consider upgrading or downgrading the version.
-
Are there any error messages being displayed? If so, these could provide significant clues to resolve the problem.
If these points don’t help solve the issue, sharing the specific code or error messages could allow us to provide more concrete advice. Please let us know if there are any developments.
Hi @fyltl827
do make sure you add the namespace as a parameter to the similarity search method
Hope this helps