https://github.com/edandersen/csharp-openai-assistants-dotnet-console
A demo C# / .NET console app showing how to upload a file to the OpenAI Assistants V2 API and ask it natural language questions
https://github.com/edandersen/csharp-openai-assistants-dotnet-console
Last synced: 5 months ago
JSON representation
A demo C# / .NET console app showing how to upload a file to the OpenAI Assistants V2 API and ask it natural language questions
- Host: GitHub
- URL: https://github.com/edandersen/csharp-openai-assistants-dotnet-console
- Owner: edandersen
- License: mit
- Created: 2024-04-13T03:48:50.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-29T06:46:18.000Z (almost 2 years ago)
- Last Synced: 2025-10-25T07:39:08.744Z (7 months ago)
- Language: C#
- Homepage:
- Size: 16.6 KB
- Stars: 37
- Watchers: 1
- Forks: 9
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# C# / .NET OpenAI GPT-4 Assistant for Local File Search
This is small sample project that shows you how to:
- upload local files to the OpenAI GPT-4 Assistant service on either Azure OpenAI service or the OpenAI API
- Use the File Search tool on Azure OpenAI Service
- Ask natural language questions about the file
- Keep the conversation thread active for follow up questions
Presented as a single Program.cs .NET 8.0 Console app.

To use the compiled app, the first parameter must be that to a local file, or on Windows you can drag and drop the file onto the compiled .exe. Tested pretty extensively with PDF files.