forked from langchain-ai/langchainjs
-
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 remote-tracking branch 'upstream/main'
- Loading branch information
Showing
411 changed files
with
14,818 additions
and
1,704 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
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 @@ | ||
18 |
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
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,66 @@ | ||
version: '3' | ||
services: | ||
test-exports-esm: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-esm:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
test-exports-cjs: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-cjs:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
test-exports-cra: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-cra:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
test-exports-cf: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-cf:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
test-exports-vercel: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-vercel:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
test-exports-vite: | ||
image: node:18 | ||
working_dir: /app | ||
volumes: | ||
- ./test-exports-vite:/package | ||
- ./langchain:/langchain | ||
- ./scripts:/scripts | ||
command: bash /scripts/docker-ci-entrypoint.sh | ||
success: | ||
image: alpine:3.14 | ||
command: echo "Success" | ||
depends_on: | ||
test-exports-esm: | ||
condition: service_completed_successfully | ||
test-exports-cjs: | ||
condition: service_completed_successfully | ||
test-exports-cra: | ||
condition: service_completed_successfully | ||
test-exports-cf: | ||
condition: service_completed_successfully | ||
test-exports-vercel: | ||
condition: service_completed_successfully | ||
test-exports-vite: | ||
condition: service_completed_successfully |
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,40 @@ | ||
# Databerry | ||
|
||
This page covers how to use the [Databerry](https://databerry.ai) within LangChain. | ||
|
||
## What is Databerry? | ||
|
||
Databerry is an [open source](https://github.com/gmpetrov/databerry) document retrievial platform that helps to connect your personal data with Large Language Models. | ||
|
||
![Databerry](/img/DataberryDashboard.png) | ||
|
||
## Quick start | ||
|
||
Retrieving documents stored in Databerry from LangChain is very easy! | ||
|
||
```typescript | ||
import { DataberryRetriever } from "langchain/retrievers/databerry"; | ||
|
||
const retriever = new DataberryRetriever({ | ||
datastoreUrl: "https://api.databerry.ai/query/clg1xg2h80000l708dymr0fxc", | ||
apiKey: "DATABERRY_API_KEY", // optional: needed for private datastores | ||
topK: 8, // optional: default value is 3 | ||
}); | ||
|
||
// Create a chain that uses the OpenAI LLM and Databerry retriever. | ||
const chain = RetrievalQAChain.fromLLM(model, retriever); | ||
|
||
// Call the chain with a query. | ||
const res = await chain.call({ | ||
query: "What's Databerry?", | ||
}); | ||
|
||
console.log({ res }); | ||
/* | ||
{ | ||
res: { | ||
text: 'Databerry provides a user-friendly solution to quickly setup a semantic search system over your personal data without any technical knowledge.' | ||
} | ||
} | ||
*/ | ||
``` |
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
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
Oops, something went wrong.