Quickstart: chat with your documents in ten minutes¶
You will install the server, connect a model, and deploy a chat app that answers from your own files with citations.
1. Install¶
The installer tells you if Python is missing. The easiest fix is uv, which lets the server prepare Python by itself:
curl -LsSf https://astral.sh/uv/install.sh | sh # macOS / Linux
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" # Windows
2. Start the server¶
Leave it running, and open a second terminal for the next steps. Check it with aiapp health.
3. Connect a model¶
aiapp secret set AZURE_OPENAI_API_KEY
aiapp secret set AZURE_OPENAI_ENDPOINT # https://YOUR-RESOURCE.openai.azure.com
Use --provider azure-openai in step 4, then set your deployment names in ai-app.yaml.
Install Ollama, then:
Use --provider ollama in step 4. No key needed.
More providers (Anthropic, Gemini, Bedrock): see Model providers.
4. Create and deploy a chat app¶
Put your documents (PDF, Word, PowerPoint, Excel, Markdown, HTML, email…) in the policies/ folder. The template already has a sample there. Then:
5. Ask a question¶
Open http://127.0.0.1:8080/apps/hr-bot/ in your browser for the built-in chat page, or call it:
curl -X POST -H "Content-Type: application/json" \
-d '{"message":"How many days of annual leave do employees get?"}' \
http://127.0.0.1:8080/apps/hr-bot/chat
The answer streams back with citations such as [1], pointing at the documents and pages it came from.
What next¶
- Change documents: edit
policies/and runaiapp deployagain. Only changed files are re-indexed. - See usage and cost:
aiapp logs hr-bot. - See one request step by step:
aiapp traceandaiapp trace ID. - Open the console:
aiapp console. - Try another blueprint: the ten blueprints.
- Let others use it safely: Security checklist.