Open
Description
Hi,
thanks for the sample project.
I believe that seed-database.ts
should contain the vector search index creation (at the end):
// define Atlas Vector Search index
const index = {
name: "vector_index",
type: "vectorSearch",
definition: {
fields: [
{
type: "vector",
numDimensions: 1536,
path: "embedding",
similarity: "cosine"
},
]
}
};
await collection.createSearchIndex(index);
console.log("Database vector index created");
Metadata
Metadata
Assignees
Labels
No labels