An open API service indexing awesome lists of open source software.

https://github.com/coowise/ollamadataverseentitychatapp


https://github.com/coowise/ollamadataverseentitychatapp

csharp dataverse milvus ollama powerplatform

Last synced: 18 days ago
JSON representation

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.