Apply context window everywhere. Ensure styling is good on all screen sizes. Cleanup inconsistencies with upstream branch.
This commit is contained in:
parent
0bb860b154
commit
67ee9eff53
11 changed files with 30 additions and 54 deletions
|
|
@ -6,10 +6,7 @@ import {
|
|||
redditSearchResponsePrompt,
|
||||
redditSearchRetrieverPrompt,
|
||||
} from './redditSearch';
|
||||
import {
|
||||
webSearchResponsePrompt,
|
||||
webSearchRetrieverPrompt
|
||||
} from './webSearch';
|
||||
import { webSearchResponsePrompt, webSearchRetrieverPrompt } from './webSearch';
|
||||
import {
|
||||
wolframAlphaSearchResponsePrompt,
|
||||
wolframAlphaSearchRetrieverPrompt,
|
||||
|
|
|
|||
|
|
@ -107,4 +107,4 @@ export const webSearchResponsePrompt = `
|
|||
</context>
|
||||
|
||||
Current date & time in ISO format (UTC timezone) is: {date}.
|
||||
`;
|
||||
`;
|
||||
|
|
|
|||
|
|
@ -282,10 +282,7 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
.pipe(this.processDocs),
|
||||
}),
|
||||
ChatPromptTemplate.fromMessages([
|
||||
[
|
||||
'system',
|
||||
this.config.responsePrompt
|
||||
],
|
||||
['system', this.config.responsePrompt],
|
||||
new MessagesPlaceholder('chat_history'),
|
||||
['user', '{query}'],
|
||||
]),
|
||||
|
|
@ -483,7 +480,7 @@ class MetaSearchAgent implements MetaSearchAgentType {
|
|||
fileIds,
|
||||
embeddings,
|
||||
optimizationMode,
|
||||
systemInstructions
|
||||
systemInstructions,
|
||||
);
|
||||
|
||||
const stream = answeringChain.streamEvents(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue