Skip to main content

Seach tool powered with AI to access GeneNetwork metadata

Project description

GNAIS

Description

GNAIS (GeneNetwork AI Search) is a python package that help digest metadata around GeneNetwork using language models. It allows running natural language queries against RDF data (metadata) converted to text and preprocessed locally.

GNAIS performs a hybrid search (keyword and semantic) through a RAG (Retrieval Augmented Generation) system. The embedding model for semantic is Qwen/Qwen3-Embedding-0.6B (open model).

We implemented GNAIS using DSPy. Switching between LLM providers for the text generation model is as easy as changing a variable :)

Installation

GNAIS is in PyPI. You can install it in your virtual environment using the following commands:

python -m venv .venv
source .venv/bin/activate
pip install gnais

Usage

To use GNAIS, you need to define a few variables in your session or script.

CORPUS_PATH=<YOUR_PATH>
PCORPUS_PATH=<YOUR_PATH>
DB_PATH=<YOUR_PATH>
SEED=<YOUR_VALUE>
MODEL_NAME=<DSPY_COMPLIANT_MODEL_NAME>
API_KEY=<YOUR_API_KEY_IF_REQUIRED>
QUERY=<YOUR_QUERY>

Once defined, you can run your search with:

from gnais.search import search
search(QUERY)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gnais-0.1.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gnais-0.1.2-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file gnais-0.1.2.tar.gz.

File metadata

  • Download URL: gnais-0.1.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.2 Linux/6.1.0-22-amd64

File hashes

Hashes for gnais-0.1.2.tar.gz
Algorithm Hash digest
SHA256 dde8a3243796487f5ca0eaa4cf8a616eb0b438f351fddd95fe548222a8a33c31
MD5 dc8b96ae1433ff1bf0cbcb892169c723
BLAKE2b-256 cd49f868013e4925aa522c1e522a29b23b79148474b2ecbdbc34d2e9da91097a

See more details on using hashes here.

File details

Details for the file gnais-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: gnais-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.2.1 CPython/3.11.2 Linux/6.1.0-22-amd64

File hashes

Hashes for gnais-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6409d60300612881b09bbdb45d226946c6fc53fdebc73923f563c98afa80e205
MD5 9f20dde037d9ce9fb5130759c119c950
BLAKE2b-256 ee076df8779bf79ae757af753ba873a7de518d8dd9e7e445aa05ae0a35429b8f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page