Commit ff1e3d8
committed
fix(demo): improve RAG retrieval to include text content
IMAGE chunks have generic descriptions (e.g., "Image 1 from page 3")
that embed poorly for semantic search but may match general queries.
This caused TEXT chunks with actual document content to be excluded.
- Add 'type' TAG field to schema for future type-based filtering
- Increase maxResults from 5 to 15 to ensure TEXT chunks are retrieved
- Lower minScore from 0.3 to 0.2 for broader retrieval (filtered in code)
RAGService already separates TEXT vs IMAGE content for processing.1 parent 3d1cc9d commit ff1e3d8
File tree
1 file changed
+6
-2
lines changed- demos/rag-multimodal/src/main/java/com/redis/vl/demo/rag/service
1 file changed
+6
-2
lines changedLines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
| 93 | + | |
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
| |||
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
131 | 135 | | |
132 | 136 | | |
133 | 137 | | |
134 | 138 | | |
135 | | - | |
136 | | - | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
0 commit comments