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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gnais-0.1.1.tar.gz.
File metadata
- Download URL: gnais-0.1.1.tar.gz
- Upload date:
- Size: 5.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
882ba7145b696fd1d656a5e14162089081ce9c7c7928ed51242a447838efd401
|
|
| MD5 |
2f248df570c08f6d21f5c24006a4912e
|
|
| BLAKE2b-256 |
cb9a41cd4995d145d410588a4f32be053b29533d76de40f22855c96ab969cd9b
|
File details
Details for the file gnais-0.1.1-py3-none-any.whl.
File metadata
- Download URL: gnais-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.6 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b40b67cd89f5e291bc963579dabf4736c24cf2ad438ba9100ee431e3a5826090
|
|
| MD5 |
39455c605ed8f08b9e993c1833ee12ed
|
|
| BLAKE2b-256 |
7d467d9b5896403d49c6f4ecc0f996ac7c6cf78cc334460a6b8015a7cf592e6f
|