feat(opensearch): Add autocomplete functionality to opensearch. This gets proxied to the searxng instance.
This commit is contained in:
parent
03b27d9cbb
commit
c3a1e434e5
6 changed files with 105 additions and 16 deletions
|
|
@ -207,7 +207,6 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
|
||||
return { query: question, docs: docs };
|
||||
} else {
|
||||
|
||||
if (this.config.additionalSearchCriteria) {
|
||||
question = `${question} ${this.config.additionalSearchCriteria}`;
|
||||
}
|
||||
|
|
@ -249,7 +248,6 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
optimizationMode: 'speed' | 'balanced' | 'quality',
|
||||
systemInstructions: string,
|
||||
) {
|
||||
|
||||
return RunnableSequence.from([
|
||||
RunnableMap.from({
|
||||
systemInstructions: () => systemInstructions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue