| Package | Description |
|---|---|
| org.noear.solon.ai.rag | |
| org.noear.solon.ai.rag.repository | |
| org.noear.solon.ai.rag.util |
| Modifier and Type | Method and Description |
|---|---|
List<Document> |
Repository.search(QueryCondition condition)
检索
|
| Modifier and Type | Method and Description |
|---|---|
List<Document> |
WebSearchRepository.search(QueryCondition condition) |
List<Document> |
InMemoryRepository.search(QueryCondition condition) |
| Modifier and Type | Method and Description |
|---|---|
QueryCondition |
QueryCondition.filter(Predicate<Document> filter)
配置过滤器
|
QueryCondition |
QueryCondition.freshness(Freshness freshness)
热度(时间范围)
|
QueryCondition |
QueryCondition.limit(int limit)
配置限制条数
|
QueryCondition |
QueryCondition.similarityThreshold(double similarityThreshold)
配置相似度阈值
|
| Modifier and Type | Method and Description |
|---|---|
static List<Document> |
SimilarityUtil.filter(QueryCondition condition,
Stream<Document> docs)
过滤(已经有评分的)
|
static List<Document> |
SimilarityUtil.scoreAndfilter(QueryCondition condition,
Stream<Document> docs,
float[] queryEmbed)
评分并过滤
|
Copyright © 2025. All rights reserved.