Tweak defaults

This commit is contained in:
jacoblee93
2024-09-18 21:35:35 -07:00
parent bf6bc427b4
commit 2a04224a6c
4 changed files with 5 additions and 3 deletions
+2
View File
@@ -2,6 +2,8 @@ TAVILY_API_KEY=...
# To separate your traces from other application
LANGCHAIN_PROJECT=data-enrichment
# LANGCHAIN_API_KEY=...
# LANGCHAIN_TRACING_V2=true
# The following depend on your selected configuration
+1 -1
View File
@@ -56,7 +56,7 @@ export function ensureConfiguration(
return {
model: configurable.model ?? "anthropic/claude-3-5-sonnet-20240620",
prompt: configurable.prompt ?? MAIN_PROMPT,
maxSearchResults: configurable.maxSearchResults ?? 10,
maxSearchResults: configurable.maxSearchResults ?? 5,
maxInfoToolCalls: configurable.maxInfoToolCalls ?? 3,
maxLoops: configurable.maxLoops ?? 6,
};
+1 -1
View File
@@ -184,7 +184,7 @@ If you don't think it is good, you should be very specific about what could be i
);
messages.push({ role: "user", content: p1 });
// Calll the model
// Call the model
const response = await boundModel.invoke(messages);
if (response.is_satisfactory && presumedInfo) {
return {
+1 -1
View File
@@ -77,7 +77,7 @@ async function scrapeWebsite(
.replace("{content}", truncatedContent);
const rawModel = await loadChatModel(configuration.model);
const result = await rawModel.invoke(p, { callbacks: config?.callbacks });
const result = await rawModel.invoke(p);
return getTextContent(result.content);
}