Skip to content

Commit

Permalink
docs: add ai docs
Browse files Browse the repository at this point in the history
  • Loading branch information
NikiforovAll committed Aug 9, 2024
1 parent 5ad8f6c commit b73ef84
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,18 @@

Dependify is a tool to visualize dependencies in your .NET application. You can start dependify in `serve` mode to visualize dependencies in a browser or use the `CLI` if you prefer the terminal.


| Package | Version | Description |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | -------------- |
| `Dependify.Cli` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Cli.svg)](https://nuget.org/packages/Dependify.Cli) | CLI |
| `Dependify.Core` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Core.svg)](https://nuget.org/packages/Dependify.Core) | Core library |
| `Dependify.Aspire.Hosting` | [![Nuget](https://img.shields.io/nuget/v/Dependify.Aspire.Hosting.svg)](https://nuget.org/packages/Dependify.Aspire.Hosting) | Aspire support |

Blogs:

* [Explore .NET application dependencies by using Dependify tool](https://nikiforovall.github.io/dotnet/2024/08/03/dependify.html)
* [Supercharge your Dependify tool with AI chat assistant](https://nikiforovall.github.io/dotnet/2024/08/09/dependify-ai.html)

## Install

```bash
Expand Down Expand Up @@ -69,6 +75,10 @@ Dependency Explorer allows you to select the dependencies you want to see.

Chat (AI) allows you to ask questions about the dependencies.

![serve-graph-view](./assets/ai-chat.png)

Here is how to run the Dependify with the OpenAI GPT-4 model.

```bash
dependify serve $dev/cap-aspire/ \
--endpoint https://api.openai.azure.com/ \
Expand Down
3 changes: 3 additions & 0 deletions assets/ai-chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions samples/aspire-project/aspire-project.AppHost/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

var dependify = builder.AddDependify().ServeFrom("../../../");

if (useLocalModelParam.Resource.Value.ToString().Equals("true", StringComparison.OrdinalIgnoreCase))
if (useLocalModelParam.Resource.Value.Equals("true", StringComparison.OrdinalIgnoreCase))
{
var modelName = "phi3:mini";
var ollama = builder.AddOllama("ollama").WithDataVolume().AddModel(modelName).WithOpenWebUI();
Expand All @@ -26,9 +26,9 @@
// dotnet user-secrets set "Parameters:endpoint" "<endpoint>"

dependify.WithAzureOpenAI(
endpointParam.Resource.Value.ToString(),
deploymentNameParam.Resource.Value.ToString(),
apiKeyParam.Resource.Value.ToString()
endpointParam.Resource.Value,
deploymentNameParam.Resource.Value,
apiKeyParam.Resource.Value
);
}

Expand Down

0 comments on commit b73ef84

Please sign in to comment.