Skip to content

Commit

Permalink
correct architecture diagram
Browse files Browse the repository at this point in the history
  • Loading branch information
tylertitsworth committed Dec 18, 2023
1 parent 807b9d3 commit 74ee663
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ title: Multi Mediawiki RAG

## About

[Mediawikis](https://en.wikipedia.org/wiki/MediaWiki) hosted by [Fandom](https://www.fandom.com/) usually allow you to download an XML dump of the entire wiki as it currently exists. This project primarily leverages [lc](https://github.com/langchain-ai/langchain) with a few other open source projects to combine many of the readily available quickstart guides into a complete vertical application based on mediawiki data.
[Mediawikis](https://en.wikipedia.org/wiki/MediaWiki) hosted by [Fandom](https://www.fandom.com/) usually allow you to download an XML dump of the entire wiki as it currently exists. This project primarily leverages [Langchain](https://github.com/langchain-ai/langchain) with a few other open source projects to combine many of the readily available quickstart guides into a complete vertical application based on mediawiki data.

### Architecture

Expand All @@ -42,12 +42,11 @@ graph TD;
c[/xml dump c/] --MWDumpLoader--> ts
ts{Text Splitter} --> emb{Embeddings} --> db
db[(Chroma)] --Retriever--> lc
Ollama --Modelfile--> lc
modelfile[/Modelfile/] --Prompt\nTop_K\nTop_P\nTemperature--> Ollama
Ollama(((Ollama))) <-.Model.-> lc
Memory <--Chat History--> lc
Prompt --DocumentQA--> lc
lc{Langchain} <-.-> cl(((Chainlit)))
cache1[(Chat $)] <--sqlite3--> lc
cache2[(Server $)] <--sqlite3--> cl
cache1[(Chat $)] <--sqlite3--> Memory
click db href "https://github.com/chroma-core/chroma"
click Huggingface href "https://huggingface.co/"
click cl href "https://github.com/Chainlit/chainlit"
Expand All @@ -57,8 +56,6 @@ graph TD;
click cache2 href "https://www.sqlite.org/index.html"
```

>**Note:** The server cache stores previously asked questions between sessions whereas the chat cache stores answers between sessions.
### Filesystem

```text
Expand Down

0 comments on commit 74ee663

Please sign in to comment.