Welcome to the AutoGecko Project! This project is designed test an ai capability in generating and executing Python code snippets . The project features a mascot, Auto Gecko, who represents the automation and simplicity behind the scenes. This project is supposed to be the simplest example of an automated agent that can run code.
AutoGecko is a Python-based tool that integrates with Ollama's llama3.1
model and utilizes FAISS for efficient vector storage. The goal of AutoGecko is to make it easier to generate and run Python code by simply querying the agent with a question or a task description.
- AI-Powered Code Generation: Generate Python code snippets on the fly using the Ollama
llama3.1
model. - FAISS Vector Store: Efficiently store and retrieve context and code snippets using FAISS.
- Error Handling: Automatically capture and log errors encountered during code execution.
- Short-Term Memory: Keep track of the last few queries and responses to maintain context.
- Caching: Save executed code in a cache folder for easy reference and reuse.
- KISS: KEEP IT SIMPLE STUPID. the code should be simple and the results, stupid. this is just a demo of how an automated agent can run code. it is fun interacting with it though.
- Python 3.8 or higher
- Install the required Python packages:
pip install faiss-cpu langchain huggingface-hub
-
Clone the repository:
git clone https://github.com/yourusername/AutoGeckoProject.git cd AutoGeckoProject
-
Run the project:
python auto.py
-
Interact with the AutoGecko by entering queries in the terminal.
Simply run the script and start typing your queries. AutoGecko will generate Python code based on your input and execute it. The code, along with any errors encountered, will be saved in the cache
folder.
Enter your request: Create a function to calculate the factorial of a number.
Auto Gecko is your friendly guide through this project. The mascot embodies the agility and intelligence of automation, helping you navigate through code generation and execution with ease.
We welcome contributions! If you have any ideas, suggestions, or bug reports, feel free to open an issue or submit a pull request.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch-name
- Make your changes and commit them:
git commit -m "Add some feature"
- Push to the branch:
git push origin feature-branch-name
- Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for more details.
For any questions or suggestions, please contact us at ulissescasemiro@gmail.com
.
Thank you for checking out the AutoGecko Project! We hope you find it as helpful and fun as we do. Happy coding!