User Tools

Site Tools


wiki:ai:advanced_rag_implementation_and_example_code

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
wiki:ai:advanced_rag_implementation_and_example_code [2025/09/03 16:33] – [Example Code for Azure Web App] bgourleywiki:ai:advanced_rag_implementation_and_example_code [2025/09/03 16:34] (current) – [Embed Your Dataset in Azure AI Search] bgourley
Line 15: Line 15:
 ===== Embed Your Dataset in Azure AI Search ===== ===== Embed Your Dataset in Azure AI Search =====
  
-== 1) Configure environment ==+=== 1) Configure environment ===
  
 Create/update **.env** (local) for ingest. Use the **Admin** search key here: Create/update **.env** (local) for ingest. Use the **Admin** search key here:
Line 67: Line 67:
 MAX_TOKENS_ANSWER=800 MAX_TOKENS_ANSWER=800
  
-== 2) Install deps ==+=== 2) Install deps ===
  
 npm install npm install
  
-== 3) Create/Update index schema (done by ingest.js) ==+=== 3) Create/Update index schema (done by ingest.js) ===
  
   * Our ingest.js creates docs with fields like:   * Our ingest.js creates docs with fields like:
Line 89: Line 89:
   * **Invalid keys** – we sanitized IDs (allowUnsafeKeys not needed).   * **Invalid keys** – we sanitized IDs (allowUnsafeKeys not needed).
  
-== 4) Put your documents in the ingest folder ==+=== 4) Put your documents in the ingest folder ===
  
 ingest/ ingest/
Line 101: Line 101:
 Etc. Etc.
  
-== 5) Run the ingest ==+=== 5) Run the ingest ===
  
 node ingest/ingest.js node ingest/ingest.js
wiki/ai/advanced_rag_implementation_and_example_code.1756917194.txt.gz · Last modified: by bgourley