graphrag/graphrag/api/__init__.py
2024-11-15 19:41:10 -05:00

34 lines
838 B
Python

# Copyright (c) 2024 Microsoft Corporation.
# Licensed under the MIT License
"""API for GraphRAG.
WARNING: This API is under development and may undergo changes in future releases.
Backwards compatibility is not guaranteed at this time.
"""
from graphrag.api.index import build_index
from graphrag.api.prompt_tune import generate_indexing_prompts
from graphrag.api.query import (
drift_search,
global_search,
global_search_streaming,
local_search,
local_search_streaming,
)
from graphrag.prompt_tune.types import DocSelectionType
__all__ = [ # noqa: RUF022
# index API
"build_index",
# query API
"global_search",
"global_search_streaming",
"local_search",
"local_search_streaming",
"drift_search",
# prompt tuning API
"DocSelectionType",
"generate_indexing_prompts",
]