From the course: Level up LLM applications development with LangChain and OpenAI
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Run vector search queries
From the course: Level up LLM applications development with LangChain and OpenAI
Run vector search queries
- [Presenter] So once we have built the Atlas Vector search index, it is possible to run vector search queries from our application code. And before going any further, so I'm just going to show you a few things. We just need to make a few adjustments. So here, you're going to see that Ive changed the name of this file from main to query, where we need to run vector search queries. And for the main entry point, I'm using this little user interface so we can interact with the program from the terminal, which will be more user-friendly. And the other thing that we need to update is the Atlas Vector Search Index name, that must match the name of the Vector Search Index on MongoDB Atlas. Im going to show you how. So here you see that the name that we have picked is the default name, which is Vector Index, so let's just make sure that the two match. So I'm going to replace Vector Search Index to Vector Index, and what you need to remember is that whichever name you pick, so when you create…
Contents
-
-
-
-
-
-
-
-
(Locked)
Getting started with MongoDB: Create an account1m 35s
-
(Locked)
Build and deploy a free cluster1m 41s
-
(Locked)
Set up the MongoDB environment and connect to the cluster6m 23s
-
(Locked)
Create a secured database access (user)3m 27s
-
(Locked)
Load sample data and create the vector store4m 18s
-
(Locked)
Create the Atlas Vector Search index4m 4s
-
(Locked)
Run vector search queries5m 33s
-
(Locked)
-
-
-
-
-