-
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.
- Loading branch information
1 parent
5ac8941
commit a9dca50
Showing
9 changed files
with
611 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
3.11.7 |
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
File renamed without changes.
File renamed without changes
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,68 @@ | ||
# RAG Architecture | ||
|
||
## Challenges | ||
|
||
1. Context embeddings creation | ||
|
||
* how are embeddings created? which strategy was used? | ||
|
||
2. Query + context | ||
|
||
* Ensure query + context reflect what's intended | ||
* provides an acceptable answer | ||
|
||
3. Include the generated answer in the correct place in the project | ||
|
||
## RAG General view | ||
|
||
```mermaid | ||
flowchart | ||
subgraph Prompt | ||
A[/Query/] --> B[Embedding model<br> <strong>text-embedding-ada-002</strong>] | ||
B --> C[Embeddings] | ||
end | ||
subgraph Context | ||
E[/Data source/] --> F[Embedding model<br> <strong>text-embedding-ada-002</strong>] | ||
F --> G[Embeddings] | ||
end | ||
subgraph Vector Database | ||
C --> D[(<strong>PostgreSQL PGVector</strong>)] | ||
G --> D | ||
end | ||
subgraph LLM | ||
A --> H[/Query + Context/] | ||
D --> H | ||
H --> I[OpenAPI o1] | ||
I --> J[/Response/] | ||
end | ||
``` | ||
|
||
## Integrations | ||
|
||
```mermaid | ||
flowchart | ||
subgraph CodeMonkey | ||
API | ||
end | ||
subgraph Local | ||
C[Repository] | ||
end | ||
subgraph Github | ||
D[Repository] | ||
Issues | ||
App | ||
end | ||
Github <--> CodeMonkey | ||
Local <--> CodeMonkey | ||
``` | ||
|
||
## Embeddings and LLM | ||
|
||
| Embeddings | LLM | | ||
| --- | --- | | ||
| text-embedding-ada-002 | OpenAPI o1 | | ||
| text-embedding-ada-002 | Llama 3.2 (local) | |
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.