Skip to content

fletchsims/pandas-ai-fastapi-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pandas-ai-fastapi-tutorial

Quick example of using Pandas AI and FastAPI to create a simple REST API service.

How to get started

  • Install required dependencies: pip install -r requirements.txt
  • Python 3.11+
  • This project assumes you're using Open AI as the LLM (if not, change the LLM to the one you will use)
  • Use some sort of data (json, parquet, csv, etc.). The demo example I use is NY Taxi Yellow Cab Trip Data 2023-01 (parquet).
  • See .env.example for how to set the environmental variables
  • Start the server from root directory from the terminal: uvicorn app.main:app --host 0.0.0.0 --port 8080
    • Example URL and usage:
      • http://0.0.0.0:8080/chat?prompt='{your prompt goes here}'
      • http://0.0.0.0:8080/chat?prompt='show me the top 3 records'

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages