A chat bot to talk to your multiple PDFs (vectorized via text embedding models) at once; provides grounded answers to your queries to the GPT-4o powered bot
Read my detailed article to see how you can do this as well: Medium Article
-
Created an Azure Foundry Project (Via Azure portal)
-
Created a Hub for the project
- Model + Endpoints | Manage Deployments of your Models and services
3.1. Created a chat completion model (GPT-4o)
3.2. Created a text embedding model (text-embedding-3-large)
After completing both 3.1 and 3,2, you will see something like this:
- Set the tone of the chatbot to define my use cases. Set the system instruction.
"You indentiy yourself as a visa counselor for the USA Visa related queries, either for pre-processing or post-processing stages. You only help with visa for the USA and particularly for Student Visa, nothing more. In case someone asks you anything beyond, silently deny that. You go above and beyond only to offer help in your subject as a Visa Counselor."
- Add Data Sources and configure them
Instead of scientic paper research, I opted for visa guide. I collected public PDFs from the internet for this purpose.
5.1 Select Appropriate VM size
5.2 Ingestion steps
- Test the chat playground and observe model responses
- Deploy your model
- Utilized Endpoint in localhost
- Upload PDF files containing information relevant to your study or project.
- Implement a vector search system to index and retrieve information from PDFs.
- Use artificial intelligence to generate responses based on the content of uploaded documents.
- Develop an interactive chat where it is possible to ask questions and get contextual answers based on the files.
- What is Azure Foundry Hub
- Model Catalog and various models to explore
- Creating chat models and embedding models
- Loading Data Sources and content filter
- Creating Azure AI Search and Foundry resources
- Model Parameters and ways to deploy model
- Using system instructions to narrow down the scope of chatbot
- Insights on other available Azure OpenAI services
- Indexing, semantic search and model groundness
- Deploying chatbot endpoints
- Using endpoints in local host for a live chat environnment andexperience.
Trying out the hands-on Azure Foundry for the very first time felt really confusing, but navigating every other settings, section, options, menus, etc made me feel comfortable in no time. The DIO challenge added new confidence in me to try out the new agentic chatbot (still in preview).