Skip to content

Commit 132d0ed

Browse files
committed
RAG & Embedding
1 parent 8b5ede1 commit 132d0ed

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

docs/genai/04_how_to_guides/03_retrieval_augmented_generation.mdx

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,20 @@ To get around this issue, one of the most popular techniques is Retrieval-augmen
88

99

1010
```mermaid
11-
flowchart LR;
12-
A["Natual language prompt <br> *Can GenAI be used for research?*"]
13-
B["Vector embedding <br> [0.052587852, 0.094195396, 0.24439038, 0.104940414, ...]"]
14-
C["Vector Database <br> embedding1 <br> embedding2 <br> embedding3 <br> ... "]
15-
D["Text with embeddings similar to the prompt"]
16-
E["Original prompt with added context"]
17-
F["Response from LLM using context"]
11+
flowchart TB;
12+
A["natual language prompt <br> *Can GenAI be used for research?*"]
13+
B["vector embedding <br> [-0.013879947, 0.0601184, 0.35442936, 0.04381764, ...]"]
14+
C["vector database <br> embedding1 <br> embedding2 <br> embedding3 <br> ... "]
15+
D["text with embeddings similar to the prompt"]
16+
E["priginal prompt with added context"]
17+
F["response from LLM using context"]
1818
subgraph Retrieval
19-
direction TB
2019
A-- "Embedding" -->B;
2120
B-- "Look for similar embeddings" -->C;
2221
C-- "Generate context" -->D;
2322
end
2423
D-- "With expanded prompt" -->E;
2524
subgraph Augmented Generation
26-
direction TB
2725
E-- "LLM" -->F;
2826
end
2927
```

0 commit comments

Comments
 (0)