Skip to content

Commit

Permalink
readme 📖 + no result text
Browse files Browse the repository at this point in the history
  • Loading branch information
nor0x committed Sep 8, 2024
1 parent d8f97ec commit 2123954
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
2 changes: 1 addition & 1 deletion WahlGPT.Common/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public static IKernelMemory BuildKernelMemory()
.WithSearchClientConfig(new SearchClientConfig
{
Temperature = 0.7,
EmptyAnswer = "Auf diese Frage habe ich leider keine Antwort? 🤔"
EmptyAnswer = "Auf diese Frage, kann ich leider keine Antwort im Wahlprogramm finden. 🤔",
})
.WithQdrantMemoryDb(QdrantHost, QdrantApiKey)
.Build();
Expand Down
43 changes: 39 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,46 @@
# WahlGPT
LLM + RAG to generate answers about the program of the parties for the 2024 Austrian legislative election.

<img src="https://raw.githubusercontent.com/nor0x/wahlgpt/main/WahlGPT.Web/wwwroot/images/header-img.png" width="250" height="250">


[![Deploy to GitHub Pages](https://github.com/nor0x/wahlgpt/actions/workflows/main.yml/badge.svg)](https://github.com/nor0x/wahlgpt/actions/workflows/main.yml)
[![pages-build-deployment](https://github.com/nor0x/wahlgpt/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/nor0x/wahlgpt/actions/workflows/pages/pages-build-deployment)



**LLM + RAG to generate answers about the program of the parties for the 2024 Austrian legislative election.**


# Dependencies
- .NET SDK >= 8
- wasm workload
- Azure Functions Core Tools

# How to run
```pwsh
# run the backend function
cd WahlGPT.Function
func start
# adapt settings (i.e. API_ENDPOINT from function) in WahlGPT.Common/Settings.cs
# for development the following extensions for KernelMemory can be used:
#.WithSimpleVectorDb()
#.WithSimpleFileStorage()
# with these you don't need a running qdrant instance - the vector db is stored in memory
# feel free to plug in other models for embedding or text generation to experiment with different results
#restore the wasm workloads
cd WahlGPT.Web
dotnet workload restore
# run the frontend
dotnet run
```

## credits
- html5up
- openai
- qdrant
- semantic-kernel
- semantic-memory
- dotnet
- qdrant
- dotnet
- openai

0 comments on commit 2123954

Please sign in to comment.