Skip to content

PythonicVarun/LLM-Agent-POC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

πŸ€– LLM Agent POC

MIT License Version GitHub issues GitHub forks GitHub stars

A smart LLM agent for various tasks, deployed as a Cloudflare Workers Site. This project serves a static website from the static/ directory.

πŸ“œ Table of Contents

🧐 About The Project

This project is a proof-of-concept for a smart LLM agent. It is built as a Cloudflare Workers Site, which means it's a serverless application that serves a static website. The core logic is in src/index.ts, which uses @cloudflare/kv-asset-handler to serve static assets.

✨ Key Features

  • ☁️ Serverless: Runs on Cloudflare Workers, a serverless platform.
  • πŸ“„ Static Site: Serves a static website from the static/ directory.
  • πŸ“¦ Asset Handling: Uses @cloudflare/kv-asset-handler to efficiently serve assets.
  • πŸ’» Development Server: Comes with a local development server powered by Wrangler.
  • πŸš€ Deployment Scripts: Includes scripts for easy deployment to Cloudflare.

πŸš€ Getting Started

To get a local copy up and running, follow these simple steps.

βœ… Prerequisites

  • Node.js: Make sure you have Node.js installed. You can download it from nodejs.org.
  • npm: npm is the package manager for Node.js and comes with the Node.js installation.
  • Wrangler: This project uses Wrangler, the command-line tool for Cloudflare Workers. You should authenticate it if you haven't already:
    npx wrangler login

πŸ“¦ Installation

  1. Clone the repo:
    git clone https://github.com/PythonicVarun/LLM-Agent-POC.git
  2. Navigate to the project directory:
    cd LLM-Agent-POC
  3. Install NPM packages:
    npm install

πŸ’» Available Scripts

In the project directory, you can run the following scripts:

  • npm run prettify: Formats the code using Prettier.
  • npm start: Starts the local development server.
  • npm run predeploy: Minifies the static assets before deployment.
  • npm run deploy: Deploys the project to Cloudflare Workers.
  • npm run restore:static: Restores the static assets after deployment.
  • npm run install:deps: Installs the project dependencies.
  • npm run publish: Publishes the site using Wrangler.
  • npm test: Runs the test suite.

πŸš€ Deployment

To deploy the project to Cloudflare Workers, simply run the following command:

npm run deploy

This will first minify the static assets and then deploy the project using Wrangler.

πŸ™ Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

πŸ“„ License

Distributed under the MIT License. See LICENSE for more information.

πŸ“« Contact

Varun Agnihotri - @PythonicVarun - code@pythonicvarun.me

About

πŸ€– A proof-of-concept for a smart LLM agent, built as a serverless static site on Cloudflare Workers.

Topics

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published