https://github.com/coowise/ollamadataverseentitychatapp
https://github.com/coowise/ollamadataverseentitychatapp
csharp dataverse milvus ollama powerplatform
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/coowise/ollamadataverseentitychatapp
- Owner: coowise
- Created: 2024-12-23T15:30:27.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-01-14T14:21:10.000Z (over 1 year ago)
- Last Synced: 2025-01-14T15:43:10.965Z (over 1 year ago)
- Topics: csharp, dataverse, milvus, ollama, powerplatform
- Language: C#
- Homepage: https://www.coowise.com/article#ollama-with-dataverse-overview
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# OllamaDataverseEntityChatApp
A command-line tool that connects to Microsoft Dataverse, retrieves data, and uses AI (Embedding and ChatCompletion) to allow you to chat with your Dataverse data using semantic search capabilities.
## Features
- 🔌 Seamless connection to Microsoft Dataverse
- 📊 Dynamic entity metadata retrieval
- 🤖 AI-powered semantic search and chat using Ollama
- 🎯 Specialized analysis for different entity types (Flow Runs, Plugin Trace Logs, etc.)
- 📈 Real-time progress visualization for embeddings generation
- 🔍 Context-aware responses using vector similarity search
## Prerequisites
- .NET 8.0
- Ollama installed and running
- Access to a Microsoft Dataverse environment
- Sufficient GPU, disk and system memory for running AI models
## Configuration
Add the following settings to your `App.config` file:
```xml
```
## Installation
1. Clone the repository
2. Restore NuGet packages
3. Configure your `App.config` file
4. Build and run the application
## Usage
Before running the application, ensure Ollama is running:
1. If you are using Ollama locally, start the Ollama server:
```bash
ollama serve
```
2. Run the application:
```bash
dotnet run
```
The application will:
1. Connect to your Dataverse environment
2. Retrieve entity metadata
3. Query the specified entity
4. Process the results
5. Ask your Dataverse data
## Error Handling
The application includes robust error handling for:
- Connection issues
- Insufficient resources for AI models
- Invalid XML responses
- General runtime errors
## Dependencies
- Microsoft.PowerPlatform.Dataverse.Client
- Microsoft.Xrm.Sdk
- System.Configuration.ConfigurationManager
- Ollama (external dependency)
- OllamaSharp
## Contributing
Contributions are welcome! Feel free to fork the repository and submit a pull request.