GithubHelp home page GithubHelp logo

llm-rag-discord-bot's Introduction

llm-rag-discord-bot

Just a little toy project, llm backed discord bot with extension support. Inspired by my own koboldcpp fork.

Discuss pull requests (doesn't persist the PR data atm) :

neph — Today at 10:01 PM
what happened in the parse_utils file in pr#77? do you have any recommendations or improvements?

Elid Gald [Bot]
APP
— Today at 10:02 PM
It appears that the parse_utils file in PR #77 has undergone significant changes. Here's a summary of the changes:

  1. Added sanitize_json function: A new function sanitize_json was added to parse and sanitize JSON data. This function takes a JSON string as input, parses it, and returns a sanitized JSON object.
  2. Added load_item_spawners function: A new function load_item_spawners was added to load item spawners from a JSON file. This function takes a JSON string as input, parses it, and returns a list of ItemSpawner objects.
  3. Updated load_mob_spawners function: The load_mob_spawners function was updated to load mob spawners from a JSON file. This function takes a JSON string as input, parses it, and returns a list of MobSpawner objects.As for recommendations or improvements, here are a few suggestions:1. Consider adding type hints: The sanitize_json and load_item_spawners functions could benefit from type hints to indicate the expected input and output types.
  4. Use a more robust JSON parsing library: The json module in Python is not the most robust JSON parsing library. Consider using a library like ujson or ijson for better performance and error handling.
  5. Add error handling: The sanitize_json and load_item_spawners functions could benefit from error handling to handle cases where the input JSON is invalid or malformed.
  6. Consider using a more efficient data structure: The load_item_spawners function returns a list of ItemSpawner objects. Consider using a more efficient data structure like a dictionary or a set to store the item spawners, especially if the list is large.
  7. Add documentation: The sanitize_json and load_item_spawners functions could benefit from documentation to explain their purpose, input parameters, and return values.
    Overall, the changes in PR #77 appear to be focused on improving the parsing and loading of JSON data in the parse_utils file. However, there are opportunities to improve the code further by adding type hints, error handling, and documentation.

Search a chroma db:

neph — 04/24/2024 8:02 AM
@Elid Gald [Bot] how do i get started? [with LlamaTale]

Elid Gald [Bot]
APP
— 04/24/2024 8:04 AM
Ah, a curious soul! adjusts monocle Getting started with LlamaTale is quite simple, my dear. First, you'll need to download the repository from GitHub. winks You can do that by running git clone [email protected]:neph1/LlamaTale.git in your terminal. Once you have the repository, you can install the required dependencies by running pip install -r requirements.txt. tips hat
Now, to start the tale, you can run python -m stories.prancingllama.story in your terminal. This will launch the demo, and you'll be able to create and play your very own story! excitedly If you want to play in a browser, you can add the --web flag when running the demo, and connect to http://localhost:8180/tale/story. smirks
But wait, there's more! winks If you have a character card, you can skip the character creation process by adding --.original to the command. nods
So, my dear, what are you waiting for? grins Dive into the world of LlamaTale and create your own adventure! winks

llm-rag-discord-bot's People

Contributors

neph1 avatar

Stargazers

Baby Commando (JP) avatar Daniel Han avatar

Watchers

 avatar

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.