You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 1.3 kB

2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
2 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041
  1. ## LLama.Web - Basic ASP.NET Core examples of LLamaSharp in action
  2. LLama.Web has no heavy dependencies and no extra frameworks over bootstrap and jquery to keep the examples clean and easy to copy over to your own project
  3. ## Websockets
  4. Using signalr websockets simplifies the streaming of responses and model per connection management
  5. ## Setup
  6. You can setup Models, Prompts and Inference parameters in the appsettings.json
  7. **Models**
  8. You can add multiple models to the options for quick selection in the UI, options are based on ModelParams so its fully configurable
  9. **Parameters**
  10. You can add multiple sets of inference parameters to the options for quick selection in the UI, options are based on InferenceParams so its fully configurable
  11. **Prompts**
  12. You can add multiple sets of prompts to the options for quick selection in the UI
  13. Example:
  14. ```json
  15. {
  16. "Name": "Alpaca",
  17. "Path": "D:\\Repositories\\AI\\Prompts\\alpaca.txt",
  18. "Prompt": "Alternatively to can set a prompt text directly and omit the Path"
  19. "AntiPrompt": [
  20. "User:"
  21. ],
  22. "OutputFilter": [
  23. "Response:",
  24. "User:"
  25. ]
  26. }
  27. ```
  28. ## Interactive UI
  29. The interactive UI is a simple example of using LLammaSharp
  30. ![demo-ui](https://i.imgur.com/nQsnWP1.png)