-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
example: add perplexity like ask confirmation agent
- Loading branch information
1 parent
c528137
commit 6f89a1a
Showing
5 changed files
with
928 additions
and
0 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
examples/typescript/perplexity-alike-asking-confirmation-rag-agent/.gitignore
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,2 @@ | ||
node_modules | ||
|
9 changes: 9 additions & 0 deletions
9
examples/typescript/perplexity-alike-asking-confirmation-rag-agent/README.md
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,9 @@ | ||
|
||
|
||
|
||
```bash | ||
pnpm i | ||
export OPENAI_API_KEY="<your key>" | ||
# or leave empty and use ollama (you will be prompted choice) | ||
pnpx tsx screenpipe.ts | ||
``` |
12 changes: 12 additions & 0 deletions
12
examples/typescript/perplexity-alike-asking-confirmation-rag-agent/package.json
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,12 @@ | ||
{ | ||
"dependencies": { | ||
"@ai-sdk/openai": "^0.0.40", | ||
"ai": "^3.3.0", | ||
"ollama-ai-provider": "^0.11.0", | ||
"readline": "^1.3.0", | ||
"zod": "^3.23.8" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^22.1.0" | ||
} | ||
} |
Oops, something went wrong.