Skip to content

Commit

Permalink
chore: adds RAG example to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
niltonheck committed Dec 10, 2024
1 parent 7e6dbbd commit b6f2a47
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ In the example above, the `onStateChange` will be triggered for every new object

Orama provides a comprehensive toolkit for building high-performance RAG (Retrieval-Augmented Generation) pipelines tailored to your document processing needs.

Below is a simple example demonstrating how to set up your application to leverage Orama's database capabilities and Secure Proxy for document-based answer generation.
Below is a simple example demonstrating how to set up your application to leverage Orama's database capabilities and the [Secure Proxy Plugin](/cloud/orama-ai/orama-secure-proxy) for document-based answer generation.

```ts copy
import { create, insert, search, AnswerSession } from "@orama/orama";
Expand All @@ -137,7 +137,7 @@ const CONFIG = {
VECTOR_DIMENSIONS: 1536,
};

// Sample documents - could be moved to a separate data file
// Sample documents
const SAMPLE_DOCS = [
{ description: "John Doe is a programmer, and he has 14 years." },
{ description: "Mitch Smith is a programmer, and he has 32 years." },
Expand Down

0 comments on commit b6f2a47

Please sign in to comment.