Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideWiest authored Apr 1, 2024
1 parent 2095ee3 commit 504a257
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
# ContextFlow
[![.NET](https://github.com/DavideWiest/ContextFlow/actions/workflows/dotnet-desktop.yml/badge.svg)](https://github.com/DavideWiest/ContextFlow/actions/workflows/dotnet-desktop.yml)

```cs
RequestResult result = new LLMRequestBuilder()
.UsingPrompt(new Prompt("Give me a number from 1 to 10"))
.UsingLLMConfig(new LLMConfig("gpt-3.5-turbo"))
.UsingLLMConnection(new OpenAIChatConnection())
.UsingRequestConfig(new RequestConfig())
.Build()
.Complete();
```

ContextFlow is builds an abstraction above regular LLMs and enables more complex interaction with LLMs. It implements these concepts:
- ***Prompt-Chaining*** (see the result action methods)
- ***Prompt-Templating*** (see CFTemplate in the namespace `ContextFlow.Application.Templates`)
Expand Down

0 comments on commit 504a257

Please sign in to comment.