feat(core): add matched context documents to ai prompt (#11148)

Close [BS-2834](https://linear.app/affine-design/issue/BS-2834).

### What Changed?
- Change `reference_index` from chip order to increasing positive integer.
- Add matched context documents to ai prompt.
This commit is contained in:
akumatus
2025-03-26 01:55:54 +00:00
parent ae552c97cf
commit d991149faa
4 changed files with 57 additions and 51 deletions

View File

@@ -311,10 +311,9 @@ const actions = [
files: [
{
blobId: 'euclidean_distance',
refIndex: 1,
fileName: 'euclidean_distance.rs',
fileType: 'text/rust',
chunks: TestAssets.Code,
fileContent: TestAssets.Code,
},
],
},
@@ -339,10 +338,9 @@ const actions = [
files: [
{
blobId: 'SSOT',
refIndex: 1,
fileName: 'Single source of truth - Wikipedia',
fileType: 'text/markdown',
chunks: TestAssets.SSOT,
fileContent: TestAssets.SSOT,
},
],
},