Skip to content

Document ingestion support for PDF and docx and WAV chunk decoding - #63

Merged
avinash-palleti merged 6 commits into
intel-retail:mainfrom
suryam789:main
Jul 27, 2026
Merged

Document ingestion support for PDF and docx and WAV chunk decoding#63
avinash-palleti merged 6 commits into
intel-retail:mainfrom
suryam789:main

Conversation

@suryam789

Copy link
Copy Markdown
Contributor

No description provided.

sainijit
sainijit previously approved these changes Jul 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds richer ingestion and observability features to the smart kiosk stack by expanding RAG context upload to support document formats (PDF/DOCX), enhancing query-time metrics streaming, and improving browser audio streaming compatibility with WAV-container chunks. Also introduces endpoints to serve synthesized response audio segments and to proxy platform hardware info.

Changes:

  • Add PDF/DOCX parsing for /api/v1/context/file uploads and batch ingestion response types.
  • Extend RAG query request flags and SSE output to optionally include performance/LLM metrics.
  • Decode browser-uploaded WAV chunks into PCM frames and add endpoints for response-audio playback and platform-info proxying.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
smart-kiosk-assistant/rag-service/requirements.txt Adds dependencies for DOCX/PDF ingestion (python-docx, pypdf).
smart-kiosk-assistant/rag-service/dto/query_dto.py Adds request flags for metrics and new DTOs for per-file + batch ingest responses.
smart-kiosk-assistant/rag-service/api/custom_endpoints.py Implements DOCX/PDF text extraction, batch file ingestion, and optional SSE metrics emission.
smart-kiosk-assistant/main.py Adds endpoint to serve synthesized response-audio WAV segments.
smart-kiosk-assistant/kiosk_core/service.py Adds lookup helper for synthesized response-audio segment file paths.
smart-kiosk-assistant/kiosk_core/audio_session.py Decodes WAV-container chunks to PCM to stabilize downstream RMS/VAD/ASR processing.
smart-kiosk-assistant/kiosk_core/api/endpoints.py Adds /api/v1/platform-info proxy endpoint to metrics-collector.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread smart-kiosk-assistant/rag-service/api/custom_endpoints.py
Comment thread smart-kiosk-assistant/rag-service/api/custom_endpoints.py Outdated
Comment thread smart-kiosk-assistant/rag-service/api/custom_endpoints.py
Comment thread smart-kiosk-assistant/kiosk_core/audio_session.py Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@suryam789
suryam789 dismissed stale reviews from avinash-palleti and sainijit via b51ba56 July 25, 2026 17:37
@suryam789

Copy link
Copy Markdown
Contributor Author

I have included the changes suggested by copilot.

@avinash-palleti
avinash-palleti merged commit 9e4aa9e into intel-retail:main Jul 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants