Coder Social home page Coder Social logo

autopalm's Introduction

Please note that I'm solo on this project at the moment and will always welcome help. I'm still learning programming language and jargon. Thank you for your understanding and patience! Kindly give credit openly if using this repository

AutoPaLM

AutoPaLM is a Python-based AI program created with the help of PaLM and other LLMs. This was started from scratch. The program stores and manages the generated content in a memory system, allowing for context-aware responses and the ability to filter, archive, and retrieve information based on user input.

Features

  • Generate questions and answers based on user-defined prompts
  • Store and manage generated content in a memory system
  • Filter and archive memory based on user-defined thresholds
  • Save and load memory settings for easy retrieval and customization
  • Detect and save code snippets from generated content

Usage

  1. Install the required dependencies:
pip install -r requirements.txt
  1. Run the main.py script to start the Auto-PaLM program:
python main.py
  1. Follow the on-screen prompts to set goals, enter prompts, and generate questions and answers.

Functions

  • set_clear_goals(): Allows users to define goals for the AI system.
  • generate_text(prompt): Generates text based on the given prompt.
  • process_answer(question, answer, memory): Processes the answer, detects code snippets and updates the memory.
  • filter_memory(memory, prompt_embedding, threshold): Filters the memory based on the relevancy of the given prompt.

User Input

Users can interact with the program by entering the following commands:

  • Enter a prompt: Users can input a prompt for the AI to generate questions and answers based on the prompt.
  • exit: Exits the program.
  • Clear memory: Clears the memory of the program.
  • Enter the number of iterations: Users can input the number of iterations for generating questions and answers. The default is 1.

Memory Settings

  • num_prompts: The number of prompts to remember.
  • filter_context_threshold: The threshold for filtering context based on relevancy (between 0 and 1).
  • archive_memory_threshold: The threshold for archiving memory (between 0 and 1).
  • filter_memory_threshold: The threshold for filtering memory based on relevancy (between 0 and 1).

Contributing

I welcome contributions to improve the Auto-PaLM program. Please feel free to submit suggestions and issues to discuss potential improvements or report bugs, and even help me understand terms and the correct process of open-source projects.

I'm so excited to see how both AutoPaLM will continue to push the boundaries of what is possible with AI in the future!

For any issues raise an issue in the issues tab

autopalm's People

Contributors

bilal-aamer 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.