Apply context window everywhere. Ensure styling is good on all screen sizes. Cleanup inconsistencies with upstream branch.

This commit is contained in:
Willie Zutz
2025-04-20 13:10:59 -06:00
parent 0bb860b154
commit 67ee9eff53
11 changed files with 30 additions and 54 deletions

View File

@@ -6,10 +6,7 @@ import {
redditSearchResponsePrompt,
redditSearchRetrieverPrompt,
} from './redditSearch';
import {
webSearchResponsePrompt,
webSearchRetrieverPrompt
} from './webSearch';
import { webSearchResponsePrompt, webSearchRetrieverPrompt } from './webSearch';
import {
wolframAlphaSearchResponsePrompt,
wolframAlphaSearchRetrieverPrompt,

View File

@@ -107,4 +107,4 @@ export const webSearchResponsePrompt = `
</context>
Current date & time in ISO format (UTC timezone) is: {date}.
`;
`;

View File

@@ -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(