mirror of
https://github.com/langchain-ai/data-enrichment-js.git
synced 2026-07-01 20:24:10 -04:00
Tweak defaults
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user