Skip to content

data service for planeswalker companion based on vector search

Notifications You must be signed in to change notification settings

krflorian/planeswalker_data_service

Repository files navigation

Planeswalker Data Service

This is an API build for Nissa. The Service uses FASTAPI and HNSWLIB to query cards data and rules regarding Magic: The Gathering.

USAGE

  1. Start the Server
fastapi run app.py
  1. Look at the Interfaces and Try out the Service
    http://127.0.0.1:8000/docs

SETUP

At the moment there are two Vector Databases that have to be filled before the dataservice can start working.

  1. Rules DB

  2. Cards DB

    • includes all mtg card data from scryfall

To fill the database there are scripts in the folder src/etl every script beginning with create_ will create data as json files that can then be vectorized and inserted in the corresponding database. For vectorizing the data at the moment we are using the opensouce model gte-large from huggingface.

Development

pip install --upgrade poetry 
poetry install 
poetry shell 

About

data service for planeswalker companion based on vector search

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages