mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-24 18:02:47 +08:00
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:
@@ -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,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user