GithubHelp home page GithubHelp logo

scisharp / botsharp Goto Github PK

View Code? Open in Web Editor NEW
2.0K 122.0 409.0 31.57 MB

The AI Agent Framework in .NET

Home Page: https://botsharp.readthedocs.io

License: Apache License 2.0

C# 98.37% Dockerfile 0.43% Liquid 1.16% PowerShell 0.04%
artificial-intelligence chatbot chatbot-framework nlp nlu chatgpt llm semantic rag

botsharp's Introduction

SciSharp STACK Web Portal

This repo contains the source code for http://scisharpstack.org

scisharp

Comprehensive list of all Projects

Stable or Beta

  • TensorFlow.NET .NET Standard bindings for TensorFlow
  • NumSharp Pure C# implementation of NumPy
  • Keras.NET Keras.NET is a high-level neural networks API for C#/F# with Python Binding and capable of running on top of TensorFlow, CNTK, or Theano.
  • Numpy.NET C#/F# bindings for NumPy - a fundamental library for scientific computing, machine learning and AI
  • ICSharpCore Jupyter kernel in C# .NET Core which is the standard interface for SciSharp STACK.
  • SharpCV A image library combines OpenCV and NumSharp together. SharpCV returns Mat object with NDArray supported.

Related technologies

  • .NET Interactive Notebooks Jupyter notebooks for C# and F#. Share code, explore data, write, and learn across your apps in ways you couldn't before.
  • Plotly.NET A .NET interface for plotly.js written in F#
  • Dash.NET A .NET interface to Dash- the most downloaded framework for building ML & data science web apps
  • FsLab An F# Community incubation space for data science

Referenced by:

gitMemory

botsharp's People

Contributors

amolwankhede avatar anacosmina avatar cprobbie avatar deep-blue-2013 avatar dependabot[bot] avatar esther2013 avatar exportio avatar geffzhang avatar haiping-chen avatar hchen2020 avatar iceljc avatar jli238 avatar john0king avatar kiebor avatar obrain2016 avatar oceania2018 avatar pppbr avatar qcjxberin avatar seplz avatar spongebob5 avatar sylviachency avatar visagang avatar wenwei-lin avatar wrathagom avatar xbotter avatar zhangyanbo2020 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

botsharp's Issues

Agent being null when sending message

Maybe is a logical thing that I have not seen, but, I am getting a null reference when trying to start a conversation.

I just pulled the project from git, and followed the docs step by step. Everything works as expected until sending the first conversation, then I get a null reference. Here is the screenshot:

image

What am I missing here?

Thank you!

The command '/bin/sh -c dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app' returned a non-zero code: 1

When I try to build image in docker, got an error like below. How can I solve it?

Classify/ClassifierFactory.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/IClassifier.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/ITextFeatureExtractor.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(19,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(20,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(21,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(22,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(23,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(24,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SentenceFeatureExtractor.cs(5,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SVMClassifier.cs(24,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/WordFeatureExtractor.cs(4,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/ITextFeatureExtractor.cs(14,14): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(46,22): error CS0246: The type or namespace name 'Probability' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(48,17): error CS0246: The type or namespace name 'MultinomiaNaiveBayes' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(170,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SentenceFeatureExtractor.cs(12,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/WordFeatureExtractor.cs(11,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
  BotSharp.Algorithm -> /app/
  BotSharp.Algorithm.UnitTest -> /source/BotSharp.Algorithm.UnitTest/bin/RASA/netcoreapp2.1/BotSharp.Algorithm.UnitTest.dll
  BotSharp.Algorithm.UnitTest -> /app/
/usr/share/dotnet/sdk/2.1.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(168,5): error MSB3030: Could not copy the file "obj/RASA/netstandard2.0/BotSharp.NLP.dll" because it was not found. [/source/BotSharp.NLP/BotSharp.NLP.csproj]
  BotSharp.Voice -> /source/BotSharp.Voice/bin/Release/netstandard2.0/BotSharp.Voice.dll
  BotSharp.Voice -> /app/
  BotSharp.Vision -> /source/BotSharp.Vision/bin/Release/netstandard2.0/BotSharp.Vision.dll
  BotSharp.Vision -> /app/
The command '/bin/sh -c dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app' returned a non-zero code: 1

Some project structure suggestions

This project seems to be overly dependent reflecting the low reusability of the BotSharp.Core library. The key point is that it relies on the EntityFrameworkCore.BootKit package. BotSharp.Core seems to have assumed that the library can only run on the asp.net host and EntityFrameworkCore cannot be executed. persistent migration

some suggested changes

BotSharp.Abstraction => BotSharp Implement the abstract logic and interface of the user agent session
BotSharp.Core split into => BotSharp.Storage BotSharp.Web. Among them, BotSharp.Storage implements EntityFrameworkCore storage logic, generates data migration, and BotSharp.Web provides user agent session and other related interfaces. There is no dependency between these two projects. The user data provider interface is defined in the BotSharp project and then used in the web and then defined by Storage
WebStarter => BotSharp.Example Dependency injection should be used in this project to instantiate the data provider interface of user agent session, where plug-in loading and so on can use IServiceCollection loading parameters to set whether the configuration is enabled or not.

Reflection seems to be overused in this project

Cannot load type

Read settings from C:\BotSharp2\BotSharp\BotSharp.WebHost\Settings
Loaded Platform "BotSharp.Platform.Dialogflow"
NLU engine: BotSharpNLU, Agent Storage: AgentStorageInFile.

When running in Visual Studio, the application started but shows those:

Cannot load type "BotSharp.Platform.Rasa"
Cannot load type "BotSharp.Platform.Articulate"
Cannot load type "BotSharp.Platform.OwnThink"
Loaded Channel "BotSharp.Channel.Weixin"
Loaded Channel "BotSharp.Channel.FacebookMessenger"

BotSharp API [v1] Apache License 2.0
BotSharp is a chatbot platform builder running in .NET Core
BotSharp AI, 6/23/2019 1:52:22 PM

Loaded Platform "BotSharp.Platform.Dialogflow"
Cannot load type "BotSharp.Platform.Rasa"
Cannot load type "BotSharp.Platform.Articulate"
Cannot load type "BotSharp.Platform.OwnThink"
Loaded Channel "BotSharp.Channel.Weixin"
Loaded Channel "BotSharp.Channel.FacebookMessenger"
Hosting environment: Development
Content root path: C:\BotSharp2\BotSharp\BotSharp.WebHost
Now listening on: http://0.0.0.0:3112
Application started. Press Ctrl+C to shut down.

And Articulate-ui gives an error : Error: agent head missing

Error Fetching Models

Hi, I managed to build bot sharp and got the UI running. Can this load many of the hugging face models? I was hoping I could run local models off of my system. I seem to get this error and I could not figure out how to change the path to models. I don't want to use OpenAI.

efm

I've never been able to get BotSharp to work

So I tried the older version of BotSharp, it did not work, I saw there was a new version and was hoping it had been fixed.

image

I tried to run it in the command line but it did not work so I loaded it up in visual studio.

Probably going to give up on this. LlamaSharp seems to work fine.

Has anyone been able to get BotSharp to work?

is it possible to import agent from Wit

Did anyone tried to import agent from Wit?
I tried to use the instructions for other platform just replacing platform in meta.json with "Wit" but it generated error

Artivulate UI has Error agent head missing

Hi Team,

I need your help to setup Botsharp on my machine. I am interested with NLP version of Bot Sharp whcih I would to tag some other UI.

Ihave setup docker and ran the articulate ui. I am gettign the followign exception
Err: Agent Head Missing
Can any one help on this.
image

Regards
Prashanth

I'm still learning problem

I trained my bot but always returns I'm still learning response. Can you help me?

  • Pulled from Master.
  • Linux Docker Container.
  • Locally running.
  • Chrome version 68.

capture
containers

请问

有详细的中文说明吗?
另外请问一下,你的程序是否可以独立完成答问功能,而不需要借助其它外部接口?即在局域网内,不链接INTERNET 的情况。也可以?

Add ContentSegmentation in KnowledgeBase

After the "Detection Model" generates a set of bounding boxes, certain post-processing steps become necessary to partition the entire image into distinct regions, laying the groundwork for the subsequent OCR stage.

System.InvalidOperationException While Creating An Agent

Hi there,

I created a c# web api and added botsharp.core and botsharp.abstraction nuget packages to it. I established jwt authorization.

When I try to create an agent, I get this error below:

**System.InvalidOperationException: Unable to resolve service for type 'BotSharp.Abstraction.Agents.IAgentService' while attempting to activate 'BotSharp.Core.Agents.AgentController'.
at Microsoft.Extensions.DependencyInjection.ActivatorUtilities.GetService(IServiceProvider sp, Type type, Type requiredBy, Boolean isDefaultParameterRequired)
at lambda_method13(Closure, IServiceProvider, Object[])
at Microsoft.AspNetCore.Mvc.Controllers.ControllerFactoryProvider.<>c__DisplayClass6_0.g__CreateController|0(ControllerContext controllerContext)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.InvokeInnerFilterAsync()
--- End of stack trace from previous location ---
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Routing.EndpointMiddleware.g__AwaitRequestTask|6_0(Endpoint endpoint, Task requestTask, ILogger logger)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Swashbuckle.AspNetCore.SwaggerUI.SwaggerUIMiddleware.Invoke(HttpContext httpContext)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.Invoke(HttpContext httpContext, ISwaggerProvider swaggerProvider)
at Microsoft.AspNetCore.Diagnostics.DeveloperExceptionPageMiddlewareImpl.Invoke(HttpContext context)

HEADERS

Accept: /
Connection: keep-alive
Host: localhost:7191
User-Agent: PostmanRuntime/7.32.3
Accept-Encoding: gzip, deflate, br
Authorization: Bearer eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJJZCI6IjBkNjA0ZGVkLTgwM2UtNGM4YS1iZTg2LThhZWMzYzgwZWFhMCIsInN1YiI6InN1YmIiLCJlbWFpbCI6ImVtYWlsIiwianRpIjoiZDg4MjlkZGItMjFjNy00NWE2LTk0M2ItMGE1YjEzMzFhZDFhIiwicm9sZSI6IlVzZXIiLCJuYmYiOjE2ODc1MzAzOTAsImV4cCI6MTY4NzUzMzk5MCwiaWF0IjoxNjg3NTMwMzkwLCJpc3MiOiJodHRwczovL3d3dy5rZS5jb20iLCJhdWQiOiJodHRwczovL3d3dy5rZS5jb20ifQ.2_lAdI4dKJrqg88XITSxrum9MRqdPmw4OU5n25gloFQb8iBnrV9i6_J7CiBfniUEENCicUK2u-vdKkjPuuvV2Q
Content-Type: application/json
Content-Length: 50
Postman-Token: 87172b36-cad6-400e-abdd-345e6b29a142**

Can anyone help me

Training the AI

Hello!

I'm fairly new to Machine Learning in general, so this may be an easy fix, but I'm getting exceptions when trying to train the AI. Specifically a null reference exception on line 131 in PlatformBuilderBase.cs in the Core project.

From the documentation, it wasn't exactly clear how to setup an agent and then what training data to use to really get started with training the AI. I created a zip file with a "meta.json" file and a file called "agent.json", both of which have the same file contents:

{
"Id": "test",
"Name": "test",
"Platform": "Dialogflow",
"ClientAccessToken": "test",
"DeveloperAccessToken": "test",
"Integrations": []
}

This was the only way I was able to get it to start working at all, but maybe this is where I went wrong? Do there need to be 2 files? What contents need to be in the files?

I think this project is great! I just need a bit of help getting everything setup to be able to debug locally so I can start adding to the project. I am not using Docker.

Example Training Dataset

Hi,

Is there any example Training Dataset to train a chatbot with BotSharp?

I tried to use Articulate to create an example dataset but i failed because Articulates version(.net core) different from BotSharp.core.(.net standart)

Integrate with Faiss for vector search

Faiss is a library for efficient similarity search and clustering of dense vectors. It contains algorithms that search in sets of vectors of any size, up to ones that possibly do not fit in RAM. It also contains supporting code for evaluation and parameter tuning. Faiss is written in C++ with complete wrappers for Python/numpy. Some of the most useful algorithms are implemented on the GPU. It is developed primarily at Meta's Fundamental AI Research group.

How to use botsharp rasa api?

Hi I have been looking into this project for a while but I couldn't find any documentation on how to use RASA. I wanted to embed RASA C# in a C# project but found it hard.

I would appreciate a lot if you can give me some guidance as how to get started, where to look, where are the important files to look at, where is the RASA AI model code located at, how to train it and some basic knowledge of using it! Thank you so much for your time and effort!

dotnet build -v m -o ../bin -c ARTICULATE fails

Following the documentation

https://botsharp.readthedocs.io/en/latest/installation.html

git clone https://github.com/Oceania2018/BotSharp
cd BotSharp
dotnet build -v m -o ../bin -c ARTICULATE

Fails:

PS C:\users\andre\BotSharp2\BotSharp> dotnet build -v m -o ../bin -c ARTICULATE
Microsoft (R) Build Engine version 16.4.0+e901037fe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

C:\users\andre\BotSharp2\BotSharp\BotSharp.sln.metaproj : error MSB4126: The specified solution configuration "ARTICULATE|Any CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [C:\users\andre\BotSharp2\BotSharp\BotSharp.sln]

Build FAILED.

C:\users\andre\BotSharp2\BotSharp\BotSharp.sln.metaproj : error MSB4126: The specified solution configuration "ARTICULATE|Any CPU" is invalid. Please specify a valid solution configuration using the Configuration and Platform properties (e.g. MSBuild.exe Solution.sln /p:Configuration=Debug /p:Platform="Any CPU") or leave those properties blank to use the default solution configuration. [C:\users\andre\BotSharp2\BotSharp\BotSharp.sln]
0 Warning(s)
1 Error(s)

Time Elapsed 00:00:00.27

When will Chinese be supported?

After trying BotSharp,I found that Chinese was not supported yet. When will Chinese be supported?

Modify UI settings "Available Agent Language" seems not working.
image

Newbie that could use some help with compiling and running.

Hi there,

I am new to programming and have started learning C# about 3 months ago, I have never programmed anything before this time period.

After making a calculator and some other basic programs I really wanted to learn how bigger applications work and learn how to upgrade and modify them.

Since I love the A.I part of programming this chatbot seemed like the place to begin.
Yet after snooping around I wanted to test the actual bot and that is where I am stuck now.

I can compile solutions in every separate folder to a separate .exe file yet when I run it it starts VS 2017 and shows the code instead of a UI screen where I can chat with the bot?
Is there a way to compile all into 1 single .exe file?? Or am I thinking wrong and I need to do something else to make it work?

I also keep getting 6 warnings when trying to run it in VS, tried looking up the fault codes yet for now It is not understandable for someone that is just starting out in this field.

Kind regards from this newbie in programming.

Error when running project in local mode

Hi,
by some reason I won't be able to have the project running using the instructions

PS D:> git clone https://github.com/Oceania2018/BotSharp
PS D:> cd BotSharp
PS D:> dotnet build -v m -o ../bin -c ARTICULATE
PS D:> dotnet bin\BotSharp.WebHost.dll

C:\BotSharp3\BotSharp>dotnet build -v m -o ../bin -c ARTICULATE
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

C:\Program Files\dotnet\sdk\2.2.107\NuGet.targets(114,5): warning : Unable to fi
nd a project to restore! [C:\BotSharp3\BotSharp\BotSharp.sln]

Build succeeded.

C:\Program Files\dotnet\sdk\2.2.107\NuGet.targets(114,5): warning : Unable to fi
nd a project to restore! [C:\BotSharp3\BotSharp\BotSharp.sln]
1 Warning(s)
0 Error(s)

Time Elapsed 00:00:00.15

C:\BotSharp3\BotSharp>dotnet bin\BotSharp.WebHost.dll
No executable found matching command "dotnet-bin\BotSharp.WebHost.dll"

I matter what I did, it won't run and generate the about error.

Any suggestions?
Also, is Articulate UI is still supported? If not, what is the alternative for UI?

Add Qrant as vector store plugin

Qdrant is a vector database & vector similarity search engine. It deploys as an API service providing search for the nearest high-dimensional vectors. With Qdrant, embeddings or neural network encoders can be turned into full-fledged applications for matching, searching, recommending, and much more!

Add Conversation Setting

Add a ConversationSetting to config the settings how bot behaves in the conversation.
It will have the ChatCompletionProvider and more configurations going forward.

Integrate with Paddle OCR

When some image is sent along with chat conversation, bot need to understand what potential text in the image. LLM will return more context related response by gettting know more informations

PaddleSharp is a .NET Wrapper for PaddleInference C API.

git clone https://github.com/Oceania2018/articulate-ui fails

Following the documentation

https://botsharp.readthedocs.io/en/latest/installation.html

Build Chatbot Designer
PS D:> git clone https://github.com/Oceania2018/articulate-ui
PS D:> cd articulate-ui
PS D:> npm install
PS D:> npm start

This fails:

PS C:\users\andre\BotSharp2> git clone https://github.com/Oceania2018/articulate-ui
Cloning into 'articulate-ui'...
remote: Repository not found.
fatal: repository 'https://github.com/Oceania2018/articulate-ui/' not found

Redis issue

Following this guide:

https://botsharp.readthedocs.io/en/latest/installation.html

I get an API failure.

PS C:\users\andre\BotSharp\BotSharp> docker-compose -f dockerfiles/docker-compose-articulateui.yml up
Starting dockerfiles_botsharp_1 ... done Starting dockerfiles_ui_1 ... done Starting 7f05049e74f0_dockerfiles_api_1 ... done Attaching to dockerfiles_botsharp_1, 7f05049e74f0_dockerfiles_api_1, dockerfiles_ui_1
botsharp_1 | Read settings from /app/Settings
ui_1 | yarn run v1.9.4
ui_1 | $ cross-env NODE_ENV=development node server
botsharp_1 | Hosting environment: Production
botsharp_1 | Content root path: /app
botsharp_1 | Now listening on: http://0.0.0.0:5000
botsharp_1 | Application started. Press Ctrl+C to shut down.
ui_1 | Server started ! ✓
ui_1 |
ui_1 | Access URLs:
ui_1 | -----------------------------------
ui_1 | Localhost: http://localhost:3000
ui_1 | LAN: http://172.18.0.4:3000
ui_1 | -----------------------------------
ui_1 | Press CTRL-C to stop
ui_1 |
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 1 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 2 of 10
ui_1 | webpack built 4a395fdab870ca8881ec in 28925ms
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 3 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 4 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 5 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 6 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 7 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 8 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 9 of 10
7f05049e74f0_dockerfiles_api_1 | Connection failed. Attempt 10 of 10
7f05049e74f0_dockerfiles_api_1 | Failure during Redis connection
7f05049e74f0_dockerfiles_api_1 | { Error: Redis connection to redis:6379 failed - connect ECONNREFUSED 23.217.138.110:6379
7f05049e74f0_dockerfiles_api_1 | at Object.exports._errnoException (util.js:1023:11)
7f05049e74f0_dockerfiles_api_1 | at exports._exceptionWithHostPort (util.js:1046:20)
7f05049e74f0_dockerfiles_api_1 | at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14)
7f05049e74f0_dockerfiles_api_1 | code: 'ECONNREFUSED',
7f05049e74f0_dockerfiles_api_1 | errno: 'ECONNREFUSED',
7f05049e74f0_dockerfiles_api_1 | syscall: 'connect',
7f05049e74f0_dockerfiles_api_1 | address: '23.217.138.110',
7f05049e74f0_dockerfiles_api_1 | port: 6379 }
7f05049e74f0_dockerfiles_api_1 exited with code 1

Add AzureOpenAI as LLM backend plugin

In Azure OpenAI there are two different options for interacting with these type of models:

  • Chat Completion API.
  • Completion API with Chat Markup Language (ChatML).
    The Chat Completion API is a new dedicated API for interacting with the ChatGPT and GPT-4 models. This API is the preferred method for accessing these models. It is also the only way to access the new GPT-4 models.

Project status and general questions

Hello, I'm starting do learn C# and found this project on Google, but I saw that the last activity was at sep-2020, so I'd like to know how is the project status, is the devs active somehow, is this project forked and maintained by others?
Should I start a new project using BotSharp or look for alternatives?

Also, I wasn't sure how is this project different from RASA and Articulate,
Thanks for your help!

Documentation for BotSharp.NLU?

I am trying to see how mature the Natural Languange Understanding is. I have looked into LUIS some but don't like having to pay a fee per call or relying on an external resource and RASA seems very difficult to use from .NET Core but is very robust. Is there any more documentation on this?

Unable to create agent

When using the file repository, the create agent endpoint returns the following error

{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "One or more validation errors occurred.",
"status": 400,
"traceId": "00-1d17c353676d944d84f08491ff387235-6e8b15a473df88d5-00",
"errors": {
"Profiles": [
"The Profiles field is required."
],
"Functions": [
"The Functions field is required."
],
"Responses": [
"The Responses field is required."
],
"Templates": [
"The Templates field is required."
],
"Instruction": [
"The Instruction field is required."
],
"RoutingRules": [
"The RoutingRules field is required."
]
}
}

It no longer allows the minimal object configuration for initial creation.

agent_error

Just starting in BotSharp, need some help

Hi, I have some experience in the .NET and Bot framework, I've been developing (amateur) for quite a while. Recently I wanted to create a more complex bot and add some machine learning to it, so I found BotSharp.

(First of all I want to point out I've read all the issues before writing this one)

Following the documentation I've cloned the repo and used docker-compose to integrate Articulate UI, to test some agents and see how it works. I open http://localhost:3000 but nothing appears. I can see in the Docker command line that the URL is open but nothing shows.

And, a begginer's question: Do I have to create my own project and link it to BotSharp or is the BotSharp project a bot in itself?

Sorry for the lack of knowledge, I just discovered your wonderful platform!

Thanks in advanced

Integrate with Fasttext as text embedding provider

fastText is an open-source library, developed by the Facebook AI Research lab. Its main focus is on achieving scalable solutions for the tasks of text classification and representation while processing large datasets quickly and accurately. FastText is a modified version of word2vec.

4 projects did not load

Hello,
I followed the steps in the documentation. But, I had a solution which has 4 missing projects. The list are

  • Bigtree.Algorithm

  • BotSharp.Platform.Articulate

  • BotSharp.Platform.Dialogflow

  • NumSharp

Because of these projects could be loaded, the solution was also cannot be built.

Please help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.