Modifier and Type | Field and Description |
---|---|
static Function<Map<Query,Collection<List<Content>>>,Query> |
ReRankingContentAggregator.DEFAULT_QUERY_SELECTOR |
static Function<Map<Query,Collection<List<Content>>>,Query> |
ReRankingContentAggregator.DEFAULT_QUERY_SELECTOR |
Modifier and Type | Method and Description |
---|---|
protected Map<Query,List<Content>> |
DefaultContentAggregator.fuse(Map<Query,Collection<List<Content>>> queryToContents) |
protected Map<Query,List<Content>> |
ReRankingContentAggregator.fuse(Map<Query,Collection<List<Content>>> queryToContents) |
Modifier and Type | Method and Description |
---|---|
protected List<TextSegment> |
ReRankingContentAggregator.reRankAndFilter(List<Content> contents,
Query query) |
Modifier and Type | Method and Description |
---|---|
List<Content> |
ContentAggregator.aggregate(Map<Query,Collection<List<Content>>> queryToContents)
|
List<Content> |
DefaultContentAggregator.aggregate(Map<Query,Collection<List<Content>>> queryToContents) |
List<Content> |
ReRankingContentAggregator.aggregate(Map<Query,Collection<List<Content>>> queryToContents) |
protected Map<Query,List<Content>> |
DefaultContentAggregator.fuse(Map<Query,Collection<List<Content>>> queryToContents) |
protected Map<Query,List<Content>> |
ReRankingContentAggregator.fuse(Map<Query,Collection<List<Content>>> queryToContents) |
Constructor and Description |
---|
ReRankingContentAggregator(ScoringModel scoringModel,
Function<Map<Query,Collection<List<Content>>>,Query> querySelector,
Double minScore) |
ReRankingContentAggregator(ScoringModel scoringModel,
Function<Map<Query,Collection<List<Content>>>,Query> querySelector,
Double minScore) |
Modifier and Type | Method and Description |
---|---|
List<Content> |
EmbeddingStoreContentRetriever.retrieve(Query query) |
List<Content> |
ContentRetriever.retrieve(Query query)
|
Modifier and Type | Method and Description |
---|---|
static Query |
Query.from(String text) |
static Query |
Query.from(String text,
Metadata metadata) |
Modifier and Type | Method and Description |
---|---|
protected Prompt |
LanguageModelQueryRouter.createPrompt(Query query) |
Collection<ContentRetriever> |
QueryRouter.route(Query query)
Routes the given
Query to one or multiple ContentRetriever s. |
Collection<ContentRetriever> |
DefaultQueryRouter.route(Query query) |
Collection<ContentRetriever> |
LanguageModelQueryRouter.route(Query query) |
Modifier and Type | Method and Description |
---|---|
protected List<Query> |
ExpandingQueryTransformer.parse(String queries) |
Collection<Query> |
CompressingQueryTransformer.transform(Query query) |
Collection<Query> |
ExpandingQueryTransformer.transform(Query query) |
Collection<Query> |
DefaultQueryTransformer.transform(Query query) |
Collection<Query> |
QueryTransformer.transform(Query query)
|
Modifier and Type | Method and Description |
---|---|
protected Prompt |
ExpandingQueryTransformer.createPrompt(Query query) |
protected Prompt |
CompressingQueryTransformer.createPrompt(Query query,
String chatMemory) |
Collection<Query> |
CompressingQueryTransformer.transform(Query query) |
Collection<Query> |
ExpandingQueryTransformer.transform(Query query) |
Collection<Query> |
DefaultQueryTransformer.transform(Query query) |
Collection<Query> |
QueryTransformer.transform(Query query)
|
Copyright © 2024. All rights reserved.