File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
src/InvoicesBot.Console/Agent Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
- # InvoiceBot – Query Structured Data with Microsoft.Extensions.AI
1
+ # InvoiceBot – AI Assistant built using Microsoft.Extensions.AI
2
2
3
3
This is a simple .NET-based AI app that uses ** Microsoft.Extensions.AI** to a structured invoice dataset using ** tool/function calls** .
4
4
@@ -7,8 +7,8 @@ This is a simple .NET-based AI app that uses **Microsoft.Extensions.AI** to a st
7
7
8
8
### Requirements
9
9
10
- - .NET 8
11
- - Azure OpenAI or OpenAI API Key
10
+ - .NET 9
11
+ - OpenAI API key(Also can use Llama, AzureOpenAi)
12
12
- Visual Studio or VS Code
13
13
14
14
### Setup
@@ -19,7 +19,7 @@ This is a simple .NET-based AI app that uses **Microsoft.Extensions.AI** to a st
19
19
"OpenAi" : {
20
20
"Key" : " your-openai-key"
21
21
}3 . Run the app:
22
- ''' bash
22
+ ``` bash
23
23
dotnet run
24
24
25
25
## Example Queries
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ public interface IInvoiceTools
28
28
Notes:
29
29
This uses LINQ.Dynamic for dynamic filtering and grouping.
30
30
GPT 4x can generate reliable dynamic LINQ expressions compared to other models
31
- You can also do this manually using expressions or reflection or custom logic.
31
+ You may need do this manually using expressions, reflection, custom logic or via api calls
32
32
Or generate sql queries(careful) for filtering if your data is in a database.
33
33
Comment out some tools if you are using a smaller models to avoid token limits.
34
34
*/
You can’t perform that action at this time.
0 commit comments