Commit 931bd38
committed
feat(repository): add TagID and IsRecommended fields to vector embeddings
- Introduced `TagID` and `IsRecommended` fields across various repository implementations (Elasticsearch, Milvus, Postgres, Qdrant, SQLite) to enhance document categorization and recommendation capabilities.
- Updated the logic for handling `IsEnabled` to ensure it reflects the actual state from the source data.
- Adjusted the knowledge service to incorporate the new `IsRecommended` field, improving the indexing process for knowledge chunks.
These changes enhance the flexibility and functionality of document retrieval and indexing across the application.1 parent 7b8a78a commit 931bd38
6 files changed
Lines changed: 25 additions & 6 deletions
File tree
- internal/application
- repository/retriever
- elasticsearch
- milvus
- postgres
- qdrant
- sqlite
- service
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
| 21 | + | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
| |||
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
38 | 42 | | |
39 | 43 | | |
40 | 44 | | |
| |||
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| 72 | + | |
68 | 73 | | |
69 | 74 | | |
70 | 75 | | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
595 | 600 | | |
596 | 601 | | |
597 | 602 | | |
| |||
919 | 924 | | |
920 | 925 | | |
921 | 926 | | |
922 | | - | |
| 927 | + | |
923 | 928 | | |
924 | 929 | | |
925 | 930 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
| 69 | + | |
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
| |||
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
800 | 804 | | |
801 | 805 | | |
802 | 806 | | |
803 | 807 | | |
804 | 808 | | |
805 | 809 | | |
806 | 810 | | |
807 | | - | |
| 811 | + | |
| 812 | + | |
808 | 813 | | |
809 | 814 | | |
810 | 815 | | |
| |||
923 | 928 | | |
924 | 929 | | |
925 | 930 | | |
926 | | - | |
| 931 | + | |
927 | 932 | | |
928 | 933 | | |
929 | 934 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
437 | 437 | | |
438 | 438 | | |
439 | 439 | | |
440 | | - | |
| 440 | + | |
441 | 441 | | |
442 | 442 | | |
443 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6224 | 6224 | | |
6225 | 6225 | | |
6226 | 6226 | | |
| 6227 | + | |
6227 | 6228 | | |
6228 | 6229 | | |
6229 | 6230 | | |
| |||
6252 | 6253 | | |
6253 | 6254 | | |
6254 | 6255 | | |
| 6256 | + | |
6255 | 6257 | | |
6256 | 6258 | | |
6257 | 6259 | | |
| |||
6277 | 6279 | | |
6278 | 6280 | | |
6279 | 6281 | | |
| 6282 | + | |
6280 | 6283 | | |
6281 | 6284 | | |
6282 | 6285 | | |
| |||
0 commit comments