-
Global AI Conference 2023 - Tue, 12 Dec 2023
-
Stack: Azure OpenAI Service, FastAPI, VueJS, LangChain, MongoDB Atlas Search (Atlas Vector Search)
-
Create Atlas Vector Search Index
{
"name": "vector_index",
"type": "vectorSearch",
"fields": [
{
"numDimensions": 1536,
"path": "plot_embedding_azureopenai",
"similarity": "euclidean",
"type": "vector"
},
{
"path": "genres",
"type": "filter"
},
{
"path": "year",
"type": "filter"
}
]
}
- Create .env.test
MONGODB_URI=""
AZURE_OPENAI_ENDPOINT=""
OPENAI_API_TYPE="azure"
OPENAI_API_KEY=""
OPENAI_API_VERSION ="2023-05-15"
- Run FastAPI
uvicorn main:app --host 127.0.0.1 --port 8000 --reload
- Run VueJS
npm run dev