Skip to content

Commit feca371

Browse files
committed
RAG & Embedding
1 parent fd3a3e5 commit feca371

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

docs/genai/04_how_to_guides/03_retrieval_augmented_generation.mdx

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

99

1010
```mermaid
11-
flowchart TB;
11+
flowchart LR;
1212
A["Natual language prompt <br> *Can GenAI be used for research?*"]
1313
B["Vector embedding <br> [0.052587852, 0.094195396, 0.24439038, 0.104940414, ...]"]
1414
C["Vector Database <br> embedding1 <br> embedding2 <br> embedding3 <br> ... "]
1515
D["Text with embeddings similar to the prompt"]
1616
E["Original prompt with added context"]
1717
F["Response from LLM using context"]
1818
subgraph Retreival
19-
direction LR
19+
direction TB
2020
A-- "Embedding" -->B;
2121
B-- "Look for similar embeddings" -->C;
2222
C-- "Generate context" -->D;
2323
end
24+
D-- "With expanded prompt" -->E;
2425
subgraph Augmented Generation
25-
direction LR
26-
D-- "Expand Prompt" -->E;
26+
direction TB
2727
E-- "LLM" -->F;
2828
end
2929
```

0 commit comments

Comments
 (0)