pokemon-api-server

by Harnishnava
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • The server uses FastAPI for its backend to handle requests and integrate with the PokeAPI database

  • The server has a Next.js frontend for the chat-based interface

  • The server uses OpenAI's API for its RAG (Retrieval Augmented Generation) system to provide enhanced AI responses for Pokemon queries

Pokemon RAG AI 助手

一个交互式 Pokemon 助手,使用 RAG(检索增强生成)结合 PokeAPI 数据库和 AI 功能来提供有关 Pokemon 的准确信息。

特征

  • 基于聊天的 Pokemon 查询界面
  • 与 PokeAPI 集成以获得准确的 Pokemon 数据
  • RAG 系统可增强 AI 响应
  • 现代 Next.js 前端
  • FastAPI 后端

设置

后端

  1. 安装 Python 依赖项:
pip install -r requirements.txt
  1. 运行后端:
uvicorn backend.main:app --reload

前端

  1. 导航到前端目录:
cd frontend
  1. 安装依赖项:
npm install
  1. 运行开发服务器:
npm run dev

环境变量

使用以下命令在根目录中创建.env文件:

OPENAI_API_KEY=your_openai_api_key
-
security - not tested
F
license - not found
-
quality - not tested

从 PokéAPI 获取 Pokémon 数据

  1. Features
    1. Setup
      1. Backend
      2. Frontend
    2. Environment Variables
      ID: 5y1qp5a2dw