Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed documentation #138

Merged
merged 2 commits into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/components/vector-databases/astradb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const app = await new RAGApplicationBuilder()


//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/vector-databases/hnswlib.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const app = await new RAGApplicationBuilder()
.build();

//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/vector-databases/lancedb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const app = await new RAGApplicationBuilder()


//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/vector-databases/mongodb.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ new MongoDb({
.build();

//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
4 changes: 2 additions & 2 deletions docs/components/vector-databases/pinecone.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ npm install @llm-tools/embedjs-pinecone
```ts Example
import { RAGApplicationBuilder } from '@llm-tools/embedjs';
import { OpenAiEmbeddings } from '@llm-tools/embedjs-openai';
import { LanceDb } from '@llm-tools/embedjs-pinecone';
import { PineconeDb } from '@llm-tools/embedjs-pinecone';

// set OPENAI_API_KEY in your env
process.env.OPENAI_API_KEY = "sk-xxx";
Expand All @@ -44,7 +44,7 @@ const app = await new RAGApplicationBuilder()


//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/vector-databases/qdrant.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const app = await new RAGApplicationBuilder()


//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
2 changes: 1 addition & 1 deletion docs/components/vector-databases/weaviate.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const app = await new RAGApplicationBuilder()


//add data source and start query in
await app.add("https://www.forbes.com/profile/elon-musk");
await app.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
await app.query('Tell me about Elon Musk');
```
</CodeGroup>
Expand Down
4 changes: 2 additions & 2 deletions docs/get-started/quickstart.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ const ragApplication = await new RAGApplicationBuilder()
.setVectorDb(new HNSWDb())
.build();

ragApplication.addLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' })
ragApplication.addLoader({ urlOrContent: 'https://en.wikipedia.org/wiki/Elon_Musk' })
ragApplication.addLoader(new WebLoader({ urlOrContent: 'https://www.forbes.com/profile/elon-musk' }));
ragApplication.addLoader(new WebLoader({ urlOrContent: 'https://en.wikipedia.org/wiki/Elon_Musk' }));

await ragApplication.query('What is the net worth of Elon Musk today?')
//Answer: The net worth of Elon Musk today is $258.7 billion.
Expand Down
Loading