-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #169 from dcSpark/eduardo/improve-smart-search
Eduardo/improve smart search
- Loading branch information
Showing
6 changed files
with
115 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// main.ts | ||
import "https://deno.land/std@0.190.0/dotenv/load.ts"; // Use the latest version if possible | ||
|
||
// Now you can access your variables: | ||
console.log("API_KEY:", Deno.env.get("API_KEY")); | ||
console.log("PORT:", Deno.env.get("PORT")); | ||
console.log("X_SHINKAI_LLM_PROVIDER:", Deno.env.get("X_SHINKAI_LLM_PROVIDER")); | ||
console.log("SHINKAI_NODE_LOCATION:", Deno.env.get("SHINKAI_NODE_LOCATION")); | ||
console.log("X_SHINKAI_APP_ID:", Deno.env.get("X_SHINKAI_APP_ID")); | ||
|
||
import { run, SearchEngine } from "./tool.ts"; | ||
|
||
|
||
const config = { | ||
searchEngineApiKey: "API_KEY", | ||
searchEngine: "DUCKDUCKGO" as SearchEngine, | ||
maxSources: 3, | ||
} | ||
|
||
const input = { | ||
question: "What are the applications of DAGs in blockchain or cryptocurrencies?", | ||
} | ||
|
||
const result = await run(config, input); | ||
|
||
console.log(result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters