Skip to content

Commit

Permalink
Added a mermaid graph of the project
Browse files Browse the repository at this point in the history
  • Loading branch information
labrijisaad committed Apr 7, 2024
1 parent 3d68e0c commit 7dbe5af
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# LLM RAG ( Ongoing Project 🚧 )


## System Architecture
The following diagram illustrates the flow of data through the system:

```mermaid
graph TD
A[User Files] -->|Read & Process| B[Semantic Database Setup]
B -->|Generate Embeddings & FAISS Index| C[Vector Store]
C -->|Utilize OpenAI's Models| D[Semantic Search]
E[User Query] -->|Vectorization| D
D -->|Select Top Documents| F[Top Documents]
F -->|Include Selected Docs in Context| G[Contextualized Documents]
E -->|Determine Expertise using OpenAI| H[Expertise Area]
H -->|Formulate Prompt| I[Prompt with Context]
G --> I
I -->|Query OpenAI LLM| J[LLM Response]
J -->|Generate Answer| K[Answer]
style A fill:#f9f,stroke:#333,stroke-width:2px
style B fill:#bbf,stroke:#333,stroke-width:2px
style C fill:#bbf,stroke:#333,stroke-width:2px
style D fill:#bbf,stroke:#333,stroke-width:2px
style E fill:#f9f,stroke:#333,stroke-width:2px
style F fill:#bbf,stroke:#333,stroke-width:2px
style G fill:#bbf,stroke:#333,stroke-width:2px
style H fill:#bbf,stroke:#333,stroke-width:2px
style I fill:#fbb,stroke:#333,stroke-width:2px
style J fill:#fbb,stroke:#333,stroke-width:2px
style K fill:#fbb,stroke:#333,stroke-width:2px
```

## Connect with me 🌐
<div align="center">
<a href="https://www.linkedin.com/in/labrijisaad/">
Expand Down

0 comments on commit 7dbe5af

Please sign in to comment.