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

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