Index FAQ data from Azure SQL into Azure AI Search with vector embeddings.
- π€ Push: Generate embeddings and upload docs.
- π₯ Pull: Use Indexer with Azure OpenAI skills.
- π Azure AI Search (vector enabled), π§ Azure OpenAI (embeddings), ποΈAzure SQL, π Python 3.12+
- π Copy
.env.exampleβ.env - π¦ Install dependencies:
poetry installorpip install - π Create a SQL database, then run
faq_tbl.sqlto create theCopilotFAQtable with sample data.
- π€ Build Azure AI Search Index: Use
aisearch_faq_index.pyto create the index. - π€ Add documents to the index
- Push: Run
push_sql_indexer.pyto upload documents. - Pull: Run
pull_sql_indexer.pyto upload documents.
- Push: Run
- AZURE_SQL_CONNECTION_STRING (for indexer pull)
- AZURE_SQL_CONNECTION_STRING_ODBC (for push pyodbc client, includes Driver={ODBC Driver 18 for SQL Server})