Skip to main content

A library for Kweaver data retrieval

Project description

kweaver-data-retrieval

A library for Kweaver data retrieval.

Installation

pip install kweaver-data-retrieval

Usage

Import Tools

from data_retrieval.tools import TOOLS_MAPPING

# List available tools
print(TOOLS_MAPPING.keys())

Knowledge Network Tools

from data_retrieval.tools.knowledge_network_tools import KNOWLEDGE_NETWORK_TOOLS_MAPPING

# Available tools:
# - knowledge_rerank: Rerank search results
# - knowledge_retrieve: Retrieve from knowledge base
# - kn_search: Knowledge network search (v2)
# - kn_path_search: Relation path retrieval
# - cypher_query: Execute Cypher queries

Start API Server

from data_retrieval.tools.tool_api_router import DEFAULT_APP
import uvicorn

uvicorn.run(DEFAULT_APP, host="0.0.0.0", port=9100)

Or from command line:

uvicorn data_retrieval.tools.tool_api_router:DEFAULT_APP --host 0.0.0.0 --port 9100

Documentation

License

Apache License 2.0

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

kweaver_data_retrieval-0.1.2.tar.gz (615.8 kB view details)

Uploaded Source

Built Distribution

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

kweaver_data_retrieval-0.1.2-py3-none-any.whl (789.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kweaver_data_retrieval-0.1.2.tar.gz
  • Upload date:
  • Size: 615.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for kweaver_data_retrieval-0.1.2.tar.gz
Algorithm Hash digest
SHA256 76abfcfc5a70e0540e4d5635c15c46fccc1b3393527d47c7e9bc32ef24ae991f
MD5 bb07f1a34fca103e623993038152ff1f
BLAKE2b-256 e26f872cfe04708a447fdd999d2e076c9c7a3ecb5859a66bf40870bfc3abd2f5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kweaver_data_retrieval-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c9626ee8e7cd0ae5dd2121672383ec192bd3b3fe801b1c3c5869195b60badae
MD5 70002cc84224ff0488aa007ed3e35551
BLAKE2b-256 07d383acfccd326b09f40bd355f11e16488a978691cb8e51871ed5b5895f1aeb

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