dotnet / dotnet/extensions

Chat template with Aspire loses ingestion state on every app restart

Open
#6,352 4 comments 0 reactions 0 assignees View on GitHub
area-ai-templates
Dominant language
C#
Stars
3.2k
Forks
894
Avg merge
1d 12h
Merged PRs (30d)
23

Description

Because it's using Aspire's SQLite hosting:

```cs
var ingestionCache = builder.AddSqlite("ingestionCache");
```

... it makes up a new random filename for the ingestion cache DB on every restart, and hence always has to re-ingest the content. This means that ingestion doesn't work as an incremental process as designed.

Ideally we'll remove the ingestion cache entirely in the next update, but if we can't, we should definitely fix this (e.g., by doing `builder.AddSqlite("ingestionCache", builder.AppHostDirectory, "ingestionCache.sqlite")`).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.