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

ポケモンRAG AIアシスタント

PokeAPI データベースと AI 機能を組み合わせて、RAG (Retrieval Augmented Generation) を使用してポケモンに関する正確な情報を提供するインタラクティブなポケモン アシスタントです。

特徴

  • ポケモンの質問のためのチャットベースのインターフェース
  • 正確なポケモンデータのためのPokeAPIとの統合
  • AI応答を強化するRAGシステム
  • モダンな 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からポケモンデータを取得する

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