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.2.0.tar.gz (482.3 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.2.0-py3-none-any.whl (614.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kweaver_data_retrieval-0.2.0.tar.gz
  • Upload date:
  • Size: 482.3 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.2.0.tar.gz
Algorithm Hash digest
SHA256 95aebcb9895dc401e54a49d358f0fdec0f03f6d7222131142fedd5fd8abf26ba
MD5 008f69b6570bfc456d62c9fcd629f20a
BLAKE2b-256 f471d57e78a4054f744a2e52c9635adb20e304524191cf1f26c13bdb81a9d120

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for kweaver_data_retrieval-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fd5880fed15cf3cdc1d770439dfb96c85860aafd4dff6fabfd7918e5b2d6be73
MD5 e51260926db0701b47e1fbd83eb9b735
BLAKE2b-256 65ecf821a711c67508e2759e130cd23d0cae426d243f0238e9588f9e1227c335

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