Home

Awesome

pyview ai chat example

This is a quick example of a chatbot using pyview and openai.

It's not production-ready, it's just a simple example to show how to use pyview and openai together in a chat interface. Currently chats are not persisted, and it doesn't keep a history.

demo

Running

This project uses poetry for dependency management, and just for task automation.

You need an OpenAI API key to run this project. You can get one here.

Install dependencies

poetry install

Set up environment variables

If using just, you can create a .env file with the following content:

OPENAI_API_KEY=your-api-key

or else just export the environment variable:

export OPEN_API_KEY=your-api-key

Run the project

just