Conversation
Agent-Logs-Url: https://github.com/TriResolve-AI/grounded-knowledge-assistant/sessions/39960425-30e7-440b-9cde-e4039548981c Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
Agent-Logs-Url: https://github.com/TriResolve-AI/grounded-knowledge-assistant/sessions/39960425-30e7-440b-9cde-e4039548981c Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
…in backend context Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
…dentials Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR extends the backend’s Azure-powered RAG capabilities by introducing document management support, adding ingestion tooling, and updating Azure client configuration and dependencies.
Changes:
- Adds
/documentsrouting to the backend Express server and fixes the server port variable usage. - Updates backend dependencies to include Azure OpenAI, Azure Search, Form Recognizer, plus upload utilities (
multer,uuid). - Adds an
ingestscript at the repo root to run the backend ingestion command.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Adds a root-level ingest script that invokes the backend ingestion script. |
| backend/server.js | Registers documents routes and fixes PORT usage in app.listen. |
| backend/package.json | Adds Azure/OpenAI/Search/Form Recognizer + upload-related dependencies. |
| backend/package-lock.json | Locks newly added backend dependencies. |
| backend/config/azureConfig.js | Changes Azure client initialization to conditional (may return null) and exports additional clients. |
Files not reviewed (1)
- backend/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
backend/server.js:74
- The server banner advertises
POST /queryandGET /audit, but the mounted routers expose different subpaths (e.g.,backend/routes/query.jsdefinesPOST /rag, andbackend/routes/audit.jsdefinesGET /audit-logand/audit-log/schema). With the currentapp.use('/query', queryRoutes)andapp.use('/audit', auditRoutes)mounts, the actual endpoints become/query/ragand/audit/audit-log, etc. Please either adjust the mounts or update the routers/logged endpoint list so they match.
app.listen(PORT, () => {
console.log(`\n🚀 Grounded Knowledge Assistant API running on port ${PORT}`);
console.log(`\n📋 Available endpoints:`);
console.log(` POST /query - Ask a question`);
console.log(` GET /audit - View audit logs`);
console.log(` GET /audit/stats - View audit statistics`);
console.log(` GET /audit/export - Export audit logs`);
|
@copilot apply changes based on the comments in this thread |
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
2 similar comments
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
2 similar comments
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
|
@portiajefferson The model You can try again without specifying a model (just If you want to contact GitHub about this error, please mention the following identifier so they can better serve you: |
Agent-Logs-Url: https://github.com/TriResolve-AI/grounded-knowledge-assistant/sessions/7d65f388-bdd0-4dca-92f9-eec31fb5c06b Co-authored-by: portiajefferson <67895258+portiajefferson@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 7 out of 8 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- backend/package-lock.json: Language not supported
Comments suppressed due to low confidence (1)
backend/server.js:74
- The startup console output lists endpoints that don't match the actual mounted routes. For example,
queryRoutesdefinesPOST /rag(so the full path is/query/rag), andauditRoutesdefines/audit-log+/audit-log/schema(so paths are/audit/audit-logand/audit/audit-log/schema). Updating these log lines (and ideally the/root endpoint listing) will prevent confusion for API consumers and demo scripts.
console.log(`\n📋 Available endpoints:`);
console.log(` POST /query - Ask a question`);
console.log(` GET /audit - View audit logs`);
console.log(` GET /audit/stats - View audit statistics`);
console.log(` GET /audit/export - Export audit logs`);
Pull request created by AI Agent