microsoft / microsoft/ai-dev-gallery

[BUG] RAG sample crash mid text generation when using Phi Silica

Open
#299 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Go to Text-RAG sample
  2. Select Phi Silica as language model
  3. Index a pdf (mine was 1500 pages)
  4. Ask a question
  5. Before answer is completed, try to stop the generation
  6. 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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.