microsoft / microsoft/ai-dev-gallery
[BUG] RAG sample crash mid text generation when using Phi Silica
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1.5k
- Forks
- 223
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
RAG sample crashes if stops generation mid-way with Phi Silica.
To Reproduce
Steps to reproduce the behavior:
- Go to Text-RAG sample
- Select Phi Silica as language model
- Index a pdf (mine was 1500 pages)
- Ask a question
- Before answer is completed, try to stop the generation
- App crashes
Expected behavior
Stops text generation
Please complete the following information:
- App Version 0.3.7
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the crash in the Text-RAG sample with Phi Silica on app version 0.3.7, using the stop-generation step while an answer is still being generated. Trace the stop-generation path and verify that stopping completes without crashing; the reproduction steps provide the completion check.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- machine-learning
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100