Find answers from the community

Updated 6 months ago

llama_index/llama-index-legacy/llama_ind...

At a glance

The post provides guidance to a community member named Asad on using the LlamaIndex library for vector search queries in MongoDB. The community member Richmond7284 suggests using the MongoDB vector search aggregate pipeline with LlamaIndex and provides a link to the relevant code. In the comments, the community members express appreciation for the help and confirm that LlamaIndex can be used for commercial purposes without a license.

Useful resources
Hi Asad,

Thanks for asking this question.

From a glance at your code, yes, you should be able to conduct the vector search query via using the MongoDB vector search aggregate pipeline with LlamaIndex:

https://github.com/run-llama/llama_index/blob/main/llama-index-legacy/llama_index/legacy/vector_stores/mongodb.py#L160-L183

Please ensure you have the vector search index definition on your cloud atlas databse collection.

Happy to answer any follow up questions you have
A
W
3 comments
alright, thank you so much @richmond7284 for your reply. It was really helpful, appreciate it.
@richmond7284 I have another question, can I use LLamaIndex for commercial usage or required any license?
You can use it!! No license required
Add a reply
Sign up and join the conversation on Discord