SYMBOL INDEX (2442 symbols across 602 files) FILE: .github/actions/decide/index.js constant FRONTEND_PREFIX (line 4) | const FRONTEND_PREFIX = core.getInput('pr-e2e-frontend-label-prefix', { ... constant BACKEND_PREFIX (line 5) | const BACKEND_PREFIX = core.getInput('pr-e2e-backend-label-prefix', { re... function run (line 7) | function run() { function findPRLabel (line 40) | function findPRLabel(test) { FILE: backend/app/alembic/env.py function get_url (line 33) | def get_url(): function include_name (line 37) | def include_name(name, type_, parent_names): function run_migrations_offline (line 48) | def run_migrations_offline(): function run_migrations_online (line 73) | def run_migrations_online(): FILE: backend/app/alembic/versions/00534dc350db_.py function upgrade (line 20) | def upgrade(): function downgrade (line 51) | def downgrade(): FILE: backend/app/alembic/versions/041fbef26e3a_.py function upgrade (line 21) | def upgrade(): function downgrade (line 40) | def downgrade(): FILE: backend/app/alembic/versions/04947f9684ab_public_chat_engine.py function upgrade (line 19) | def upgrade(): function downgrade (line 25) | def downgrade(): FILE: backend/app/alembic/versions/04d4f05116ed_.py function upgrade (line 22) | def upgrade(): function downgrade (line 87) | def downgrade(): FILE: backend/app/alembic/versions/04d81be446c3_.py function upgrade (line 19) | def upgrade(): function downgrade (line 32) | def downgrade(): FILE: backend/app/alembic/versions/10f36e8a25c4_.py function upgrade (line 19) | def upgrade(): function downgrade (line 30) | def downgrade(): FILE: backend/app/alembic/versions/197bc8be72d1_.py function upgrade (line 20) | def upgrade(): function downgrade (line 32) | def downgrade(): FILE: backend/app/alembic/versions/211f3c5aa125_chunking_settings.py function upgrade (line 20) | def upgrade(): function downgrade (line 28) | def downgrade(): FILE: backend/app/alembic/versions/27a6723b767a_.py function upgrade (line 19) | def upgrade(): function downgrade (line 34) | def downgrade(): FILE: backend/app/alembic/versions/2adc0b597dcd_int_enum_type.py function upgrade (line 22) | def upgrade(): function downgrade (line 34) | def downgrade(): FILE: backend/app/alembic/versions/2fc10c21bf88_.py function upgrade (line 23) | def upgrade(): function downgrade (line 442) | def downgrade(): FILE: backend/app/alembic/versions/749767db5505_add_recommend_questions.py function upgrade (line 20) | def upgrade(): function downgrade (line 54) | def downgrade(): FILE: backend/app/alembic/versions/8093333c0d87_.py function upgrade (line 20) | def upgrade(): function downgrade (line 30) | def downgrade(): FILE: backend/app/alembic/versions/830fd9c44f39_.py function upgrade (line 21) | def upgrade(): function downgrade (line 46) | def downgrade(): FILE: backend/app/alembic/versions/94b198e20946_.py function upgrade (line 21) | def upgrade(): function downgrade (line 88) | def downgrade(): FILE: backend/app/alembic/versions/a54f966436ce_evaluation.py function upgrade (line 20) | def upgrade(): function downgrade (line 132) | def downgrade(): FILE: backend/app/alembic/versions/a8c79553c9f6_.py function upgrade (line 20) | def upgrade(): function downgrade (line 27) | def downgrade(): FILE: backend/app/alembic/versions/ac6e4d58580d_.py function upgrade (line 21) | def upgrade(): function downgrade (line 38) | def downgrade(): FILE: backend/app/alembic/versions/bd17a4ebccc5_.py function upgrade (line 21) | def upgrade(): function downgrade (line 36) | def downgrade(): FILE: backend/app/alembic/versions/c7f016a904c1_.py function upgrade (line 20) | def upgrade(): function downgrade (line 26) | def downgrade(): FILE: backend/app/alembic/versions/d2ad44deab20_multiple_kb.py function upgrade (line 27) | def upgrade(): function downgrade (line 119) | def downgrade(): FILE: backend/app/alembic/versions/dfee070b8abd_.py function upgrade (line 20) | def upgrade(): function downgrade (line 43) | def downgrade(): FILE: backend/app/alembic/versions/e32f1e546eec_.py function upgrade (line 22) | def upgrade(): function downgrade (line 61) | def downgrade(): FILE: backend/app/alembic/versions/eb0b85608c0a_.py function upgrade (line 20) | def upgrade(): function downgrade (line 39) | def downgrade(): FILE: backend/app/api/admin_routes/chat/routes.py function list_chat_origins (line 17) | def list_chat_origins( FILE: backend/app/api/admin_routes/chat_engine.py function list_chat_engines (line 14) | def list_chat_engines( function create_chat_engine (line 23) | def create_chat_engine( function get_chat_engine (line 32) | def get_chat_engine( function update_chat_engine (line 41) | def update_chat_engine( function delete_chat_engine (line 52) | def delete_chat_engine( function get_default_config (line 64) | def get_default_config( FILE: backend/app/api/admin_routes/document/routes.py function list_documents (line 17) | def list_documents( FILE: backend/app/api/admin_routes/embedding_model/models.py class EmbeddingModelCreate (line 9) | class EmbeddingModelCreate(BaseModel): method vector_dimension_must_gt_1 (line 19) | def vector_dimension_must_gt_1(cls, v: int) -> int: class EmbeddingModelUpdate (line 27) | class EmbeddingModelUpdate(BaseModel): class EmbeddingModelItem (line 33) | class EmbeddingModelItem(BaseModel): class EmbeddingModelDetail (line 42) | class EmbeddingModelDetail(BaseModel): class EmbeddingModelTestResult (line 54) | class EmbeddingModelTestResult(BaseModel): FILE: backend/app/api/admin_routes/embedding_model/routes.py function list_embedding_model_provider_options (line 26) | def list_embedding_model_provider_options( function list_embedding_models (line 33) | def list_embedding_models( function test_embedding_model (line 40) | def test_embedding_model( function create_embedding_model (line 67) | def create_embedding_model( function get_embedding_model_detail (line 76) | def get_embedding_model_detail( function update_embedding_model (line 83) | def update_embedding_model( function delete_embedding_model (line 94) | def delete_embedding_model( function set_default_embedding_model (line 102) | def set_default_embedding_model( FILE: backend/app/api/admin_routes/evaluation/evaluation_dataset.py function create_evaluation_dataset (line 23) | def create_evaluation_dataset( function delete_evaluation_dataset (line 95) | def delete_evaluation_dataset( function update_evaluation_dataset (line 107) | def update_evaluation_dataset( function list_evaluation_dataset (line 125) | def list_evaluation_dataset( function create_evaluation_dataset_item (line 139) | def create_evaluation_dataset_item( function delete_evaluation_dataset_item (line 160) | def delete_evaluation_dataset_item( function update_evaluation_dataset_item (line 174) | def update_evaluation_dataset_item( function list_evaluation_dataset_item (line 201) | def list_evaluation_dataset_item( function get_evaluation_dataset_item (line 219) | def get_evaluation_dataset_item( FILE: backend/app/api/admin_routes/evaluation/evaluation_task.py function create_evaluation_task (line 34) | def create_evaluation_task( function cancel_evaluation_task (line 93) | def cancel_evaluation_task( function get_evaluation_task (line 109) | def get_evaluation_task( function get_evaluation_task_summary (line 118) | def get_evaluation_task_summary( function list_evaluation_task (line 126) | def list_evaluation_task( function list_evaluation_task_items (line 150) | def list_evaluation_task_items( function get_summary_for_evaluation_task (line 172) | def get_summary_for_evaluation_task( FILE: backend/app/api/admin_routes/evaluation/models.py class CreateEvaluationTask (line 9) | class CreateEvaluationTask(BaseModel): class EvaluationTaskOverview (line 16) | class EvaluationTaskOverview(BaseModel): class EvaluationTaskSummary (line 32) | class EvaluationTaskSummary(BaseModel): class UpdateEvaluationDataset (line 43) | class UpdateEvaluationDataset(BaseModel): class CreateEvaluationDataset (line 47) | class CreateEvaluationDataset(BaseModel): class ModifyEvaluationDatasetItem (line 52) | class ModifyEvaluationDatasetItem(BaseModel): class ParamsWithKeyword (line 60) | class ParamsWithKeyword(Params): FILE: backend/app/api/admin_routes/evaluation/tools.py function must_get (line 8) | def must_get(session: Session, model: Type[T], item_id: int) -> T: function must_get_and_belong (line 18) | def must_get_and_belong( FILE: backend/app/api/admin_routes/feedback.py function list_feedbacks (line 18) | def list_feedbacks( function list_feedback_origins (line 32) | def list_feedback_origins( FILE: backend/app/api/admin_routes/knowledge_base/chunk/models.py class KBChunkRetrievalConfig (line 6) | class KBChunkRetrievalConfig(BaseModel): class KBRetrieveChunksRequest (line 11) | class KBRetrieveChunksRequest(BaseModel): FILE: backend/app/api/admin_routes/knowledge_base/chunk/routes.py function retrieve_chunks (line 18) | def retrieve_chunks( FILE: backend/app/api/admin_routes/knowledge_base/data_source/models.py class KBDataSource (line 6) | class KBDataSource(BaseModel): class KBDataSourceMutable (line 17) | class KBDataSourceMutable(BaseModel): method name_must_not_be_blank (line 21) | def name_must_not_be_blank(cls, v: str) -> str: class KBDataSourceCreate (line 27) | class KBDataSourceCreate(KBDataSourceMutable): class KBDataSourceUpdate (line 32) | class KBDataSourceUpdate(KBDataSourceMutable): FILE: backend/app/api/admin_routes/knowledge_base/data_source/routes.py function create_kb_datasource (line 26) | def create_kb_datasource( function update_kb_datasource (line 57) | def update_kb_datasource( function get_kb_datasource (line 85) | def get_kb_datasource( function list_kb_datasources (line 104) | def list_kb_datasources( function remove_kb_datasource (line 114) | def remove_kb_datasource( FILE: backend/app/api/admin_routes/knowledge_base/document/models.py class DocumentFilters (line 12) | class DocumentFilters(BaseModel): class DocumentItem (line 47) | class DocumentItem(BaseModel): class RebuildIndexResult (line 64) | class RebuildIndexResult(BaseModel): FILE: backend/app/api/admin_routes/knowledge_base/document/routes.py function list_kb_documents (line 33) | def list_kb_documents( function get_kb_document_by_id (line 56) | def get_kb_document_by_id( function list_kb_document_chunks (line 74) | def list_kb_document_chunks( function remove_kb_document (line 92) | def remove_kb_document( function rebuild_kb_documents_index (line 135) | def rebuild_kb_documents_index( function rebuild_kb_document_index (line 154) | def rebuild_kb_document_index( function rebuild_kb_document_index_by_ids (line 173) | def rebuild_kb_document_index_by_ids( FILE: backend/app/api/admin_routes/knowledge_base/graph/knowledge/routes.py function retrieve_knowledge (line 20) | def retrieve_knowledge(session: SessionDep, kb_id: int, request: Knowled... function retrieve_knowledge_neighbors (line 41) | def retrieve_knowledge_neighbors( function retrieve_knowledge_chunks (line 63) | def retrieve_knowledge_chunks( FILE: backend/app/api/admin_routes/knowledge_base/graph/models.py class SynopsisEntityCreate (line 9) | class SynopsisEntityCreate(BaseModel): method validate_entities (line 17) | def validate_entities(self): class EntityUpdate (line 23) | class EntityUpdate(BaseModel): class RelationshipUpdate (line 29) | class RelationshipUpdate(BaseModel): class GraphSearchRequest (line 35) | class GraphSearchRequest(BaseModel): class KBKnowledgeGraphRetrievalConfig (line 46) | class KBKnowledgeGraphRetrievalConfig(BaseModel): class KBRetrieveKnowledgeGraphRequest (line 50) | class KBRetrieveKnowledgeGraphRequest(BaseModel): class KnowledgeRequest (line 59) | class KnowledgeRequest(BaseModel): class KnowledgeNeighborRequest (line 65) | class KnowledgeNeighborRequest(BaseModel): class KnowledgeChunkRequest (line 73) | class KnowledgeChunkRequest(BaseModel): FILE: backend/app/api/admin_routes/knowledge_base/graph/routes.py function search_similar_entities (line 42) | def search_similar_entities( function create_synopsis_entity (line 60) | def create_synopsis_entity( function get_entity (line 85) | def get_entity(session: SessionDep, kb_id: int, entity_id: int): function update_entity (line 107) | def update_entity( function get_entity_subgraph (line 131) | def get_entity_subgraph(session: SessionDep, kb_id: int, entity_id: int)... function get_relationship (line 157) | def get_relationship(session: SessionDep, kb_id: int, relationship_id: i... function update_relationship (line 179) | def update_relationship( function retrieve_kb_knowledge_graph (line 206) | def retrieve_kb_knowledge_graph( function legacy_search_graph (line 228) | def legacy_search_graph(session: SessionDep, kb_id: int, request: GraphS... function get_entire_knowledge_graph (line 251) | def get_entire_knowledge_graph(session: SessionDep, kb_id: int): function stream_entire_knowledge_graph (line 268) | def stream_entire_knowledge_graph(session: SessionDep, kb_id: int): FILE: backend/app/api/admin_routes/knowledge_base/models.py class KnowledgeBaseCreate (line 20) | class KnowledgeBaseCreate(BaseModel): method name_must_not_be_blank (line 32) | def name_must_not_be_blank(cls, v: str) -> str: method index_methods_must_has_vector (line 38) | def index_methods_must_has_vector(cls, v: list[IndexMethod]) -> list[I... class KnowledgeBaseUpdate (line 46) | class KnowledgeBaseUpdate(BaseModel): class KnowledgeBaseDetail (line 52) | class KnowledgeBaseDetail(BaseModel): class KnowledgeBaseItem (line 76) | class KnowledgeBaseItem(BaseModel): class VectorIndexError (line 92) | class VectorIndexError(BaseModel): class KGIndexError (line 99) | class KGIndexError(BaseModel): class ChunkItem (line 107) | class ChunkItem(BaseModel): class RetrievalRequest (line 122) | class RetrievalRequest(BaseModel): FILE: backend/app/api/admin_routes/knowledge_base/routes.py function create_knowledge_base (line 48) | def create_knowledge_base( function list_knowledge_bases (line 103) | def list_knowledge_bases( function get_knowledge_base (line 112) | def get_knowledge_base( function update_knowledge_base_setting (line 127) | def update_knowledge_base_setting( function list_kb_linked_chat_engines (line 145) | def list_kb_linked_chat_engines( function delete_knowledge_base (line 159) | def delete_knowledge_base(session: SessionDep, user: CurrentSuperuserDep... function get_knowledge_base_index_overview (line 185) | def get_knowledge_base_index_overview( function list_kb_vector_index_errors (line 204) | def list_kb_vector_index_errors( function list_kb_kg_index_errors (line 221) | def list_kb_kg_index_errors( function retry_failed_tasks (line 238) | def retry_failed_tasks( FILE: backend/app/api/admin_routes/langfuse.py class LangfuseSetting (line 13) | class LangfuseSetting(BaseModel): class LangfuseTestResult (line 19) | class LangfuseTestResult(BaseModel): function test_langfuse (line 25) | def test_langfuse( FILE: backend/app/api/admin_routes/legacy_retrieve.py function get_override_engine_config (line 19) | def get_override_engine_config( function legacy_retrieve_documents (line 41) | def legacy_retrieve_documents( function legacy_retrieve_chunks (line 75) | def legacy_retrieve_chunks( function legacy_retrieve_chunks_2 (line 109) | def legacy_retrieve_chunks_2( FILE: backend/app/api/admin_routes/llm/routes.py function list_llm_provider_options (line 20) | def list_llm_provider_options(user: CurrentSuperuserDep) -> List[LLMProv... function list_llms (line 25) | def list_llms( class LLMTestResult (line 33) | class LLMTestResult(BaseModel): function test_llm (line 39) | def test_llm( function create_llm (line 72) | def create_llm( function get_llm (line 81) | def get_llm( function update_llm (line 90) | def update_llm( function delete_llm (line 101) | def delete_llm( function set_default_llm (line 111) | def set_default_llm( FILE: backend/app/api/admin_routes/models.py class LLMDescriptor (line 9) | class LLMDescriptor(BaseModel): class EmbeddingModelDescriptor (line 17) | class EmbeddingModelDescriptor(EmbeddingModelItem): class UserDescriptor (line 21) | class UserDescriptor(BaseModel): class KnowledgeBaseDescriptor (line 26) | class KnowledgeBaseDescriptor(BaseModel): method __hash__ (line 30) | def __hash__(self): class DataSourceDescriptor (line 34) | class DataSourceDescriptor(BaseModel): class ChatEngineDescriptor (line 39) | class ChatEngineDescriptor(BaseModel): class ChatEngineBasedRetrieveRequest (line 45) | class ChatEngineBasedRetrieveRequest(BaseModel): FILE: backend/app/api/admin_routes/reranker_model/routes.py function list_reranker_model_provider_options (line 23) | def list_reranker_model_provider_options( function list_reranker_models (line 30) | def list_reranker_models( class RerankerModelTestResult (line 38) | class RerankerModelTestResult(BaseModel): function test_reranker_model (line 44) | def test_reranker_model( function create_reranker_model (line 91) | def create_reranker_model( function get_reranker_model (line 100) | def get_reranker_model( function update_reranker_model (line 109) | def update_reranker_model( function delete_reranker_model (line 120) | def delete_reranker_model( function set_default_reranker_model (line 130) | def set_default_reranker_model( FILE: backend/app/api/admin_routes/semantic_cache.py function add_semantic_cache (line 16) | async def add_semantic_cache( function search_semantic_cache (line 51) | async def search_semantic_cache( FILE: backend/app/api/admin_routes/site_setting.py function site_settings (line 13) | def site_settings(user: CurrentSuperuserDep): class SettingUpdate (line 17) | class SettingUpdate(BaseModel): function update_site_setting (line 51) | def update_site_setting( FILE: backend/app/api/admin_routes/stats.py class DateRangeStats (line 11) | class DateRangeStats(BaseModel): class ChatStats (line 16) | class ChatStats(DateRangeStats): function chat_count_trend (line 21) | def chat_count_trend( function chat_origin_trend (line 29) | def chat_origin_trend( FILE: backend/app/api/admin_routes/upload.py function upload_files (line 28) | def upload_files( FILE: backend/app/api/admin_routes/user.py function search_users (line 18) | def search_users( FILE: backend/app/api/routes/api_key.py class CreateApiKeyRequest (line 12) | class CreateApiKeyRequest(BaseModel): class CreateApiKeyResponse (line 16) | class CreateApiKeyResponse(BaseModel): function create_api_key (line 21) | async def create_api_key( function list_api_keys (line 31) | async def list_api_keys( function delete_api_key (line 40) | async def delete_api_key( FILE: backend/app/api/routes/chat.py class ChatRequest (line 37) | class ChatRequest(BaseModel): method check_messages (line 45) | def check_messages(cls, messages: List[ChatMessage]) -> List[ChatMessa... function chats (line 61) | def chats( function list_chats (line 99) | def list_chats( function get_chat (line 111) | def get_chat(session: SessionDep, user: OptionalUserDep, chat_id: UUID): function update_chat (line 124) | def update_chat( function delete_chat (line 144) | def delete_chat(session: SessionDep, user: CurrentUserDep, chat_id: UUID): function get_chat_subgraph (line 165) | def get_chat_subgraph(session: SessionDep, user: OptionalUserDep, chat_m... function get_recommended_questions (line 184) | def get_recommended_questions( function refresh_recommended_questions (line 204) | def refresh_recommended_questions( FILE: backend/app/api/routes/chat_engine.py function list_chat_engines (line 17) | def list_chat_engines( function get_chat_engine (line 29) | def get_chat_engine( FILE: backend/app/api/routes/document.py function download_file (line 11) | def download_file(doc_id: int, session: SessionDep): FILE: backend/app/api/routes/feedback.py class FeedbackRequest (line 12) | class FeedbackRequest(BaseModel): function feedback (line 20) | def feedback( FILE: backend/app/api/routes/index.py function status (line 17) | def status(session: SessionDep): function site_config (line 23) | def site_config() -> dict: function system_bootstrap_status (line 28) | def system_bootstrap_status(session: SessionDep) -> SystemConfigStatusRe... FILE: backend/app/api/routes/models.py class RequiredConfigStatus (line 4) | class RequiredConfigStatus(BaseModel): class OptionalConfigStatus (line 11) | class OptionalConfigStatus(BaseModel): class NeedMigrationStatus (line 16) | class NeedMigrationStatus(BaseModel): class SystemConfigStatusResponse (line 20) | class SystemConfigStatusResponse(BaseModel): FILE: backend/app/api/routes/retrieve/models.py class ChunkRetrievalConfig (line 14) | class ChunkRetrievalConfig(FusionRetrievalBaseConfig): class ChunksRetrievalRequest (line 19) | class ChunksRetrievalRequest(BaseModel): class KnowledgeGraphRetrievalConfig (line 27) | class KnowledgeGraphRetrievalConfig(FusionRetrievalBaseConfig): class KnowledgeGraphRetrievalRequest (line 31) | class KnowledgeGraphRetrievalRequest(BaseModel): FILE: backend/app/api/routes/retrieve/routes.py function retrieve_chunks (line 24) | def retrieve_chunks( function retrieve_knowledge_graph (line 48) | def retrieve_knowledge_graph( FILE: backend/app/api/routes/user.py function me (line 10) | def me(user: CurrentUserDep): FILE: backend/app/api_server.py function custom_generate_unique_id (line 18) | def custom_generate_unique_id(route: APIRoute) -> str: function lifespan (line 32) | async def lifespan(app: FastAPI): function identify_browser (line 59) | async def identify_browser(request: Request, call_next): FILE: backend/app/auth/api_keys.py function generate_api_key (line 16) | def generate_api_key(length=50): function get_api_key_from_request (line 26) | def get_api_key_from_request(request: Request) -> str | None: function encrypt_api_key (line 37) | def encrypt_api_key(api_key: str) -> str: class ApiKeyManager (line 51) | class ApiKeyManager: method acreate_api_key (line 52) | async def acreate_api_key( method create_api_key (line 68) | def create_api_key( method get_active_user_by_raw_api_key (line 84) | async def get_active_user_by_raw_api_key( method get_active_user_from_request (line 105) | async def get_active_user_from_request( method list_api_keys (line 111) | async def list_api_keys( method delete_api_key (line 123) | async def delete_api_key(self, session: AsyncSession, user: User, api_... FILE: backend/app/auth/db.py function get_user_db (line 10) | async def get_user_db(session: AsyncSession = Depends(get_db_async_sessi... function get_user_session_db (line 14) | async def get_user_session_db( FILE: backend/app/auth/schemas.py class UserRead (line 6) | class UserRead(schemas.BaseUser[uuid.UUID]): class UserCreate (line 10) | class UserCreate(schemas.BaseUserCreate): class UserUpdate (line 14) | class UserUpdate(schemas.BaseUserUpdate): FILE: backend/app/auth/users.py class UserManager (line 29) | class UserManager(UUIDIDMixin, BaseUserManager[User, uuid.UUID]): method on_after_register (line 33) | async def on_after_register(self, user: User, request: Optional[Reques... method on_after_forgot_password (line 36) | async def on_after_forgot_password( method on_after_request_verify (line 41) | async def on_after_request_verify( function get_user_manager (line 47) | async def get_user_manager(user_db: SQLModelUserDatabaseAsync = Depends(... function get_database_strategy (line 58) | def get_database_strategy( function current_user (line 78) | async def current_user( function current_superuser (line 96) | async def current_superuser( function optional_current_user (line 117) | async def optional_current_user( function create_user (line 136) | async def create_user( function update_user_password (line 162) | async def update_user_password( FILE: backend/app/core/config.py function parse_cors (line 19) | def parse_cors(v: Any) -> list[str] | str: class Environment (line 27) | class Environment(str, enum.Enum): class Settings (line 33) | class Settings(BaseSettings): method server_host (line 54) | def server_host(self) -> str: method _validate_sentry_sample_rate (line 71) | def _validate_sentry_sample_rate(self) -> Self: method SQLALCHEMY_DATABASE_URI (line 110) | def SQLALCHEMY_DATABASE_URI(self) -> MySQLDsn: method SQLALCHEMY_ASYNC_DATABASE_URI (line 127) | def SQLALCHEMY_ASYNC_DATABASE_URI(self) -> MySQLDsn: method _validate_secrets (line 138) | def _validate_secrets(self) -> Self: FILE: backend/app/core/db.py function get_ssl_context (line 28) | def get_ssl_context(): function prepare_db_connection (line 48) | def prepare_db_connection(dbapi_connection, connection_record): function get_db_session (line 60) | def get_db_session() -> Generator[Session, None, None]: function get_db_async_session (line 65) | async def get_db_async_session() -> AsyncGenerator[AsyncSession, None]: FILE: backend/app/evaluation/evals.py class Evaluation (line 40) | class Evaluation: method __init__ (line 57) | def __init__( method runeval_dataset (line 92) | def runeval_dataset( method run (line 193) | def run(self, metrics: list = DEFAULT_METRICS) -> None: method parse_sample (line 232) | def parse_sample(self, item: DatasetItemClient): method _generate_answer_by_tidb_ai (line 264) | def _generate_answer_by_tidb_ai(self, messages: list) -> (str, str): method generate_answer_by_tidb_ai (line 290) | def generate_answer_by_tidb_ai(self, messages: list) -> str: function parse_langfuse_trace_id_from_url (line 310) | def parse_langfuse_trace_id_from_url(trace_url: str) -> str: function fetch_rag_data (line 315) | def fetch_rag_data(langfuse_client: Langfuse, tracing_id: str): FILE: backend/app/evaluation/evaluators/e2e_rag_evaluator.py class E2ERagEvaluator (line 18) | class E2ERagEvaluator: method __init__ (line 19) | def __init__(self, model="gpt-4o", threshold=0.7) -> None: method evaluate (line 39) | def evaluate( FILE: backend/app/evaluation/evaluators/language_detector.py class EvaluationData (line 25) | class EvaluationData(BaseModel): class LanguageEvaluator (line 31) | class LanguageEvaluator(BaseEvaluator): method __init__ (line 47) | def __init__( method _get_prompts (line 68) | def _get_prompts(self) -> PromptDictType: method _update_prompts (line 74) | def _update_prompts(self, prompts: PromptDictType) -> None: method aevaluate (line 79) | async def aevaluate( FILE: backend/app/evaluation/evaluators/toxicity.py class ToxicityEvaluator (line 62) | class ToxicityEvaluator(BaseEvaluator): method __init__ (line 63) | def __init__( method _get_prompts (line 83) | def _get_prompts(self) -> PromptDictType: method _update_prompts (line 89) | def _update_prompts(self, prompts: PromptDictType) -> None: method aevaluate (line 94) | async def aevaluate( FILE: backend/app/exceptions.py class InternalServerError (line 9) | class InternalServerError(HTTPException): method __init__ (line 10) | def __init__(self): class ChatException (line 17) | class ChatException(HTTPException): class ChatNotFound (line 21) | class ChatNotFound(ChatException): method __init__ (line 24) | def __init__(self, chat_id: UUID): class ChatMessageNotFound (line 28) | class ChatMessageNotFound(ChatException): method __init__ (line 31) | def __init__(self, message_id: int): class LLMException (line 38) | class LLMException(HTTPException): class LLMNotFound (line 42) | class LLMNotFound(LLMException): method __init__ (line 45) | def __init__(self, llm_id: int): class DefaultLLMNotFound (line 49) | class DefaultLLMNotFound(LLMException): method __init__ (line 52) | def __init__(self): class EmbeddingModelException (line 59) | class EmbeddingModelException(HTTPException): class EmbeddingModelNotFound (line 63) | class EmbeddingModelNotFound(EmbeddingModelException): method __init__ (line 66) | def __init__(self, model_id: int): class DefaultEmbeddingModelNotFound (line 70) | class DefaultEmbeddingModelNotFound(EmbeddingModelException): method __init__ (line 73) | def __init__(self): class RerankerModelException (line 80) | class RerankerModelException(HTTPException): class RerankerModelNotFound (line 84) | class RerankerModelNotFound(RerankerModelException): method __init__ (line 87) | def __init__(self, model_id: int): class DefaultRerankerModelNotFound (line 91) | class DefaultRerankerModelNotFound(RerankerModelException): method __init__ (line 94) | def __init__(self): class KBException (line 101) | class KBException(HTTPException): class KBNotFound (line 105) | class KBNotFound(KBException): method __init__ (line 108) | def __init__(self, knowledge_base_id: int): class KBDataSourceNotFound (line 112) | class KBDataSourceNotFound(KBException): method __init__ (line 115) | def __init__(self, kb_id: int, data_source_id: int): class KBNoLLMConfigured (line 121) | class KBNoLLMConfigured(KBException): method __init__ (line 124) | def __init__(self): class KBNoEmbedModelConfigured (line 128) | class KBNoEmbedModelConfigured(KBException): method __init__ (line 131) | def __init__(self): class KBNoVectorIndexConfigured (line 135) | class KBNoVectorIndexConfigured(KBException): method __init__ (line 138) | def __init__(self): class KBNotAllowedUpdateEmbedModel (line 142) | class KBNotAllowedUpdateEmbedModel(KBException): method __init__ (line 145) | def __init__(self): class KBIsUsedByChatEngines (line 149) | class KBIsUsedByChatEngines(KBException): method __init__ (line 152) | def __init__(self, kb_id, chat_engines_num: int): class DocumentException (line 159) | class DocumentException(HTTPException): class DocumentNotFound (line 163) | class DocumentNotFound(DocumentException): method __init__ (line 166) | def __init__(self, document_id: int): class ChatEngineException (line 173) | class ChatEngineException(HTTPException): class ChatEngineNotFound (line 177) | class ChatEngineNotFound(ChatEngineException): method __init__ (line 180) | def __init__(self, chat_engine_id: int): class DefaultChatEngineCannotBeDeleted (line 184) | class DefaultChatEngineCannotBeDeleted(ChatEngineException): method __init__ (line 187) | def __init__(self, chat_engine_id: int): FILE: backend/app/experiments/sql_extraction.py class SampleExtract (line 11) | class SampleExtract(dspy.Signature): class SQLExtractModule (line 37) | class SQLExtractModule(dspy.Module): method __init__ (line 38) | def __init__(self, dspy_lm: dspy.LM): method forward (line 43) | def forward(self, QA_content: str): class SQlExtractor (line 48) | class SQlExtractor: method __init__ (line 49) | def __init__(self, dspy_lm: dspy.LM, complied_program_path: Optional[s... method gen (line 54) | def gen(self, QA_content: str) -> SQLSample: FILE: backend/app/experiments/sql_sample_gen.py class Step (line 10) | class Step(BaseModel): class SQLSample (line 15) | class SQLSample(BaseModel): class SampleGen (line 24) | class SampleGen(dspy.Signature): class SQLGenModule (line 50) | class SQLGenModule(dspy.Module): method __init__ (line 51) | def __init__(self, dspy_lm: dspy.LM): method forward (line 56) | def forward(self, QA_content: str): class SQlGenerator (line 61) | class SQlGenerator: method __init__ (line 62) | def __init__(self, dspy_lm: dspy.LM, complied_program_path: Optional[s... method gen (line 67) | def gen(self, QA_content: str) -> SQLSample: FILE: backend/app/file_storage/__init__.py function get_file_storage (line 5) | def get_file_storage() -> FileStorage: FILE: backend/app/file_storage/base.py class FileStorage (line 6) | class FileStorage(ABC): method open (line 8) | def open(self, name: str, mode: str = "rb") -> IO: method save (line 12) | def save(self, name: str, content: IO) -> None: method delete (line 16) | def delete(self, name: str) -> None: method exists (line 20) | def exists(self, name: str) -> bool: method size (line 24) | def size(self, name: str) -> int: FILE: backend/app/file_storage/local.py class LocalFileStorage (line 8) | class LocalFileStorage(FileStorage): method path (line 9) | def path(self, name: str) -> str: method open (line 12) | def open(self, name: str, mode: str = "rb") -> IO: method save (line 15) | def save(self, name: str, content: IO) -> None: method delete (line 21) | def delete(self, name: str) -> None: method exists (line 24) | def exists(self, name: str) -> bool: method size (line 27) | def size(self, name: str) -> int: FILE: backend/app/models/api_key.py class BaseApiKey (line 12) | class BaseApiKey(UpdatableBaseModel): class ApiKey (line 19) | class ApiKey(BaseApiKey, table=True): class PublicApiKey (line 32) | class PublicApiKey(BaseApiKey): FILE: backend/app/models/auth.py class User (line 17) | class User(UUIDBaseModel, UpdatableBaseModel, table=True): class UserSession (line 27) | class UserSession(SQLModel, table=True): FILE: backend/app/models/base.py class UUIDBaseModel (line 13) | class UUIDBaseModel(SQLModel): class UpdatableBaseModel (line 22) | class UpdatableBaseModel(SQLModel): function get_aes_key (line 36) | def get_aes_key() -> bytes: class AESEncryptedColumn (line 40) | class AESEncryptedColumn(TypeDecorator): method process_bind_param (line 43) | def process_bind_param(self, value, dialect): method process_result_value (line 49) | def process_result_value(self, value, dialect): class IntEnumType (line 56) | class IntEnumType(TypeDecorator): method __init__ (line 69) | def __init__(self, enum_class, *args, **kwargs): method process_bind_param (line 73) | def process_bind_param(self, value, dialect): method process_result_value (line 81) | def process_result_value(self, value, dialect): FILE: backend/app/models/chat.py class ChatVisibility (line 18) | class ChatVisibility(int, enum.Enum): class Chat (line 23) | class Chat(UUIDBaseModel, UpdatableBaseModel, table=True): class ChatUpdate (line 55) | class ChatUpdate(BaseModel): class ChatFilters (line 60) | class ChatFilters(BaseModel): class ChatOrigin (line 70) | class ChatOrigin(BaseModel): FILE: backend/app/models/chat_engine.py class ChatEngine (line 16) | class ChatEngine(UpdatableBaseModel, table=True): class ChatEngineUpdate (line 45) | class ChatEngineUpdate(BaseModel): FILE: backend/app/models/chat_message.py class ChatMessage (line 19) | class ChatMessage(UpdatableBaseModel, table=True): FILE: backend/app/models/chunk.py class KgIndexStatus (line 24) | class KgIndexStatus(str, enum.Enum): function get_kb_chunk_model (line 32) | def get_kb_chunk_model(kb: KnowledgeBase) -> Type[SQLModel]: function get_dynamic_chunk_model (line 38) | def get_dynamic_chunk_model( FILE: backend/app/models/data_source.py class DataSourceType (line 19) | class DataSourceType(str, Enum): class DataSource (line 25) | class DataSource(UpdatableBaseModel, table=True): FILE: backend/app/models/document.py class DocIndexTaskStatus (line 22) | class DocIndexTaskStatus(str, enum.Enum): class ContentFormat (line 30) | class ContentFormat(str, enum.Enum): class Document (line 35) | class Document(UpdatableBaseModel, table=True): method to_llama_document (line 73) | def to_llama_document(self) -> LlamaDocument: FILE: backend/app/models/embed_model.py class EmbeddingModel (line 12) | class EmbeddingModel(UpdatableBaseModel, table=True): FILE: backend/app/models/entity.py class EntityType (line 21) | class EntityType(str, enum.Enum): method __str__ (line 25) | def __str__(self): class EntityPublic (line 29) | class EntityPublic(BaseModel): function get_kb_entity_model (line 38) | def get_kb_entity_model(kb: KnowledgeBase) -> Type[SQLModel]: function get_dynamic_entity_model (line 44) | def get_dynamic_entity_model( FILE: backend/app/models/evaluation_dataset.py class EvaluationDataset (line 15) | class EvaluationDataset(UpdatableBaseModel, table=True): class EvaluationDatasetItem (line 34) | class EvaluationDatasetItem(UpdatableBaseModel, table=True): FILE: backend/app/models/evaluation_task.py class EvaluationStatus (line 17) | class EvaluationStatus(str, enum.Enum): class EvaluationTask (line 25) | class EvaluationTask(UpdatableBaseModel, table=True): class EvaluationTaskItem (line 46) | class EvaluationTaskItem(UpdatableBaseModel, table=True): FILE: backend/app/models/feedback.py class FeedbackType (line 15) | class FeedbackType(str, enum.Enum): method adjust_relationship_weight (line 20) | def adjust_relationship_weight(cls, feedback_type): class BaseFeedback (line 25) | class BaseFeedback(UpdatableBaseModel): class Feedback (line 34) | class Feedback(BaseFeedback, table=True): class AdminFeedbackPublic (line 61) | class AdminFeedbackPublic(BaseFeedback): class FeedbackFilters (line 70) | class FeedbackFilters(BaseModel): class FeedbackOrigin (line 79) | class FeedbackOrigin(BaseModel): FILE: backend/app/models/knowledge_base.py class IndexMethod (line 36) | class IndexMethod(str, enum.Enum): class KnowledgeBaseDataSource (line 41) | class KnowledgeBaseDataSource(SQLModel, table=True): class ChunkSplitter (line 51) | class ChunkSplitter(str, enum.Enum): class SentenceSplitterOptions (line 56) | class SentenceSplitterOptions(BaseModel): class MarkdownNodeParserOptions (line 73) | class MarkdownNodeParserOptions(BaseModel): class ChunkSplitterConfig (line 87) | class ChunkSplitterConfig(BaseModel): class ChunkingMode (line 94) | class ChunkingMode(str, enum.Enum): class BaseChunkingConfig (line 99) | class BaseChunkingConfig(BaseModel): class GeneralChunkingConfig (line 103) | class GeneralChunkingConfig(BaseChunkingConfig): class AdvancedChunkingConfig (line 110) | class AdvancedChunkingConfig(BaseChunkingConfig): class KnowledgeBase (line 120) | class KnowledgeBase(SQLModel, table=True): method __init__ (line 178) | def __init__(self, **kwargs): method __hash__ (line 182) | def __hash__(self): method get_data_source_by_id (line 185) | def get_data_source_by_id(self, data_source_id: int) -> Optional[DataS... method must_get_data_source_by_id (line 195) | def must_get_data_source_by_id(self, data_source_id: int) -> DataSource: method to_descriptor (line 201) | def to_descriptor(self) -> KnowledgeBaseDescriptor: FILE: backend/app/models/knowledge_base_scoped/table_naming.py function get_kb_chunks_table_name (line 22) | def get_kb_chunks_table_name(knowledge_base: KnowledgeBase) -> str: function get_kb_relationships_table_name (line 30) | def get_kb_relationships_table_name(knowledge_base: KnowledgeBase) -> str: function get_kb_entities_table_name (line 38) | def get_kb_entities_table_name(knowledge_base: KnowledgeBase) -> str: function get_kb_vector_dims (line 46) | def get_kb_vector_dims(kb: KnowledgeBase): FILE: backend/app/models/llm.py class BaseLLM (line 8) | class BaseLLM(UpdatableBaseModel): class LLM (line 16) | class LLM(BaseLLM, table=True): class AdminLLM (line 23) | class AdminLLM(BaseLLM): class LLMUpdate (line 27) | class LLMUpdate(BaseModel): FILE: backend/app/models/recommend_question.py class RecommendQuestion (line 13) | class RecommendQuestion(UpdatableBaseModel, table=True): FILE: backend/app/models/relationship.py class RelationshipPublic (line 21) | class RelationshipPublic(BaseModel): function get_kb_relationship_model (line 33) | def get_kb_relationship_model(kb: KnowledgeBase) -> Type[SQLModel]: function get_dynamic_relationship_model (line 40) | def get_dynamic_relationship_model( FILE: backend/app/models/reranker_model.py class BaseRerankerModel (line 10) | class BaseRerankerModel(UpdatableBaseModel): class RerankerModel (line 19) | class RerankerModel(BaseRerankerModel, table=True): class AdminRerankerModel (line 26) | class AdminRerankerModel(BaseRerankerModel): class RerankerModelUpdate (line 30) | class RerankerModelUpdate(BaseModel): FILE: backend/app/models/semantic_cache.py class SemanticCache (line 18) | class SemanticCache(SQLModel, table=True): method __hash__ (line 48) | def __hash__(self): method screenshot (line 53) | def screenshot(self): FILE: backend/app/models/site_setting.py class SiteSetting (line 8) | class SiteSetting(SQLModel, table=True): FILE: backend/app/models/staff_action_log.py class StaffActionLog (line 7) | class StaffActionLog(SQLModel, table=True): FILE: backend/app/models/upload.py class Upload (line 15) | class Upload(UpdatableBaseModel, table=True): FILE: backend/app/rag/build_index.py class IndexService (line 34) | class IndexService: method __init__ (line 39) | def __init__( method build_vector_index_for_document (line 51) | def build_vector_index_for_document( method _get_transformations (line 79) | def _get_transformations( method build_kg_index_for_chunk (line 138) | def build_kg_index_for_chunk(self, session: Session, db_chunk: Type[SQ... FILE: backend/app/rag/chat/chat_flow.py function parse_chat_messages (line 43) | def parse_chat_messages( class ChatFlow (line 51) | class ChatFlow: method __init__ (line 54) | def __init__( method chat (line 167) | def chat(self) -> Generator[ChatEvent | str, None, None]: method _builtin_chat (line 200) | def _builtin_chat( method _chat_start (line 260) | def _chat_start( method _search_knowledge_graph (line 291) | def _search_knowledge_graph( method _refine_user_question (line 334) | def _refine_user_question( method _clarify_question (line 381) | def _clarify_question( method _search_relevance_chunks (line 436) | def _search_relevance_chunks( method _generate_answer (line 460) | def _generate_answer( method _post_verification (line 526) | def _post_verification( method _chat_finish (line 579) | def _chat_finish( method _external_chat (line 628) | def _external_chat(self) -> Generator[ChatEvent | str, None, None]: method _generate_goal (line 800) | def _generate_goal(self) -> Generator[ChatEvent, None, Tuple[str, dict]]: FILE: backend/app/rag/chat/chat_service.py class ChatResult (line 53) | class ChatResult(BaseModel): function get_final_chat_result (line 61) | def get_final_chat_result( function user_can_view_chat (line 94) | def user_can_view_chat(chat: DBChat, user: Optional[User]) -> bool: function user_can_edit_chat (line 102) | def user_can_edit_chat(chat: DBChat, user: Optional[User]) -> bool: function get_graph_data_from_chat_message (line 110) | def get_graph_data_from_chat_message( function get_chat_message_subgraph (line 176) | def get_chat_message_subgraph( function check_rag_required_config (line 206) | def check_rag_required_config(session: Session) -> RequiredConfigStatus: function check_rag_optional_config (line 224) | def check_rag_optional_config(session: Session) -> OptionalConfigStatus: function check_rag_config_need_migration (line 237) | def check_rag_config_need_migration(session: Session) -> NeedMigrationSt... function remove_chat_message_recommend_questions (line 257) | def remove_chat_message_recommend_questions( function get_chat_message_recommend_questions (line 268) | def get_chat_message_recommend_questions( FILE: backend/app/rag/chat/config.py class LLMOption (line 39) | class LLMOption(BaseModel): class VectorSearchOption (line 49) | class VectorSearchOption(VectorSearchRetrieverConfig): class KnowledgeGraphOption (line 53) | class KnowledgeGraphOption(KnowledgeGraphRetrieverConfig): class ExternalChatEngine (line 58) | class ExternalChatEngine(BaseModel): class LinkedKnowledgeBase (line 63) | class LinkedKnowledgeBase(BaseModel): class KnowledgeBaseOption (line 67) | class KnowledgeBaseOption(BaseModel): class ChatEngineConfig (line 74) | class ChatEngineConfig(BaseModel): method is_external_engine (line 97) | def is_external_engine(self) -> bool: method get_db_chat_engine (line 103) | def get_db_chat_engine(self) -> Optional[DBChatEngine]: method get_linked_knowledge_base (line 106) | def get_linked_knowledge_base(self, session: Session) -> KnowledgeBase... method load_from_db (line 114) | def load_from_db(cls, session: Session, engine_name: str) -> "ChatEngi... method get_llama_llm (line 133) | def get_llama_llm(self, session: Session) -> LLM: method get_dspy_lm (line 143) | def get_dspy_lm(self, session: Session) -> dspy.LM: method get_fast_llama_llm (line 147) | def get_fast_llama_llm(self, session: Session) -> LLM: method get_fast_dspy_lm (line 157) | def get_fast_dspy_lm(self, session: Session) -> dspy.LM: method get_reranker (line 162) | def get_reranker( method get_metadata_filter (line 177) | def get_metadata_filter(self) -> BaseNodePostprocessor: method get_knowledge_bases (line 180) | def get_knowledge_bases(self, db_session: Session) -> List[KnowledgeBa... method screenshot (line 196) | def screenshot(self) -> dict: FILE: backend/app/rag/chat/retrieve/retrieve_flow.py class SourceDocument (line 31) | class SourceDocument(BaseModel): class RetrieveFlow (line 37) | class RetrieveFlow: method __init__ (line 38) | def __init__( method retrieve (line 66) | def retrieve(self, user_question: str) -> List[NodeWithScore]: method retrieve_documents (line 77) | def retrieve_documents(self, user_question: str) -> List[DBDocument]: method search_knowledge_graph (line 81) | def search_knowledge_graph( method _get_knowledge_graph_context (line 101) | def _get_knowledge_graph_context( method _refine_user_question (line 120) | def _refine_user_question( method search_relevant_chunks (line 134) | def search_relevant_chunks(self, user_question: str) -> List[NodeWithS... method get_documents_from_nodes (line 144) | def get_documents_from_nodes(self, nodes: List[NodeWithScore]) -> List... method get_source_documents_from_nodes (line 150) | def get_source_documents_from_nodes( FILE: backend/app/rag/chat/stream_protocol.py class ChatStreamPayload (line 10) | class ChatStreamPayload: method dump (line 11) | def dump(self): class ChatStreamDataPayload (line 16) | class ChatStreamDataPayload(ChatStreamPayload): method dump (line 21) | def dump(self): class ChatStreamMessagePayload (line 32) | class ChatStreamMessagePayload(ChatStreamPayload): method dump (line 38) | def dump(self): class ChatEvent (line 57) | class ChatEvent: method encode (line 61) | def encode(self, charset) -> bytes: FILE: backend/app/rag/datasource/__init__.py function get_data_source_loader (line 12) | def get_data_source_loader( FILE: backend/app/rag/datasource/base.py class BaseDataSource (line 9) | class BaseDataSource(ABC): method __init__ (line 16) | def __init__( method validate_config (line 33) | def validate_config(self): method load_documents (line 37) | def load_documents(self) -> Generator[Document, None, None]: FILE: backend/app/rag/datasource/file.py class FileConfig (line 17) | class FileConfig(BaseModel): class FileDataSource (line 21) | class FileDataSource(BaseDataSource): method validate_config (line 22) | def validate_config(self): method load_documents (line 28) | def load_documents(self) -> Generator[Document, None, None]: function extract_text_from_pdf (line 70) | def extract_text_from_pdf(file: IO) -> str: function extract_text_from_docx (line 75) | def extract_text_from_docx(file: IO) -> str: function extract_text_from_pptx (line 83) | def extract_text_from_pptx(file: IO) -> str: function extract_text_from_xlsx (line 93) | def extract_text_from_xlsx(file: IO) -> str: FILE: backend/app/rag/datasource/web_base.py function load_web_documents (line 14) | def load_web_documents( FILE: backend/app/rag/datasource/web_single_page.py class WebSinglePageConfig (line 12) | class WebSinglePageConfig(BaseModel): class WebSinglePageDataSource (line 16) | class WebSinglePageDataSource(BaseDataSource): method validate_config (line 17) | def validate_config(self): method load_documents (line 20) | def load_documents(self) -> Generator[Document, None, None]: FILE: backend/app/rag/datasource/web_sitemap.py class WebSitemapConfig (line 16) | class WebSitemapConfig(BaseModel): function _ensure_absolute_url (line 20) | def _ensure_absolute_url(source_url: str, maybe_relative_url: str) -> str: function extract_urls_from_sitemap (line 26) | def extract_urls_from_sitemap(sitemap_url: str) -> list[str]: class WebSitemapDataSource (line 40) | class WebSitemapDataSource(BaseDataSource): method validate_config (line 41) | def validate_config(self): method load_documents (line 44) | def load_documents(self) -> Generator[Document, None, None]: FILE: backend/app/rag/embeddings/local/local_embedding.py class _APICaller (line 14) | class _APICaller: method __init__ (line 15) | def __init__( method get_embeddings (line 27) | def get_embeddings(self, sentences: list[str]) -> List[List[float]]: method aget_embeddings (line 47) | async def aget_embeddings(self, sentences: list[str]) -> List[List[flo... class LocalEmbedding (line 64) | class LocalEmbedding(BaseEmbedding): method __init__ (line 74) | def __init__( method class_name (line 94) | def class_name(cls) -> str: method _get_query_embedding (line 97) | def _get_query_embedding(self, query: str) -> List[float]: method _aget_query_embedding (line 101) | async def _aget_query_embedding(self, query: str) -> List[float]: method _get_text_embedding (line 106) | def _get_text_embedding(self, text: str) -> List[float]: method _aget_text_embedding (line 110) | async def _aget_text_embedding(self, text: str) -> List[float]: method _get_text_embeddings (line 115) | def _get_text_embeddings(self, texts: List[str]) -> List[List[float]]: method _aget_text_embeddings (line 118) | async def _aget_text_embeddings( FILE: backend/app/rag/embeddings/open_like/openai_like_embedding.py class OpenAILikeEmbedding (line 10) | class OpenAILikeEmbedding(BaseEmbedding): method __init__ (line 21) | def __init__( method get_embeddings (line 42) | def get_embeddings(self, sentences: list[str]) -> List[List[float]]: method aget_embeddings (line 52) | async def aget_embeddings(self, sentences: list[str]) -> List[List[flo... method class_name (line 62) | def class_name(cls) -> str: method _get_query_embedding (line 65) | def _get_query_embedding(self, query: str) -> List[float]: method _aget_query_embedding (line 69) | async def _aget_query_embedding(self, query: str) -> List[float]: method _get_text_embedding (line 74) | def _get_text_embedding(self, text: str) -> List[float]: method _aget_text_embedding (line 78) | async def _aget_text_embedding(self, text: str) -> List[float]: method _get_text_embeddings (line 83) | def _get_text_embeddings(self, texts: List[str]) -> List[List[float]]: method _aget_text_embeddings (line 86) | async def _aget_text_embeddings( FILE: backend/app/rag/embeddings/provider.py class EmbeddingProvider (line 7) | class EmbeddingProvider(str, enum.Enum): class EmbeddingProviderOption (line 19) | class EmbeddingProviderOption(BaseModel): FILE: backend/app/rag/embeddings/resolver.py function resolve_embed_model (line 20) | def resolve_embed_model( function get_default_embed_model (line 86) | def get_default_embed_model(session: Session) -> Optional[BaseEmbedding]: function must_get_default_embed_model (line 98) | def must_get_default_embed_model(session: Session) -> BaseEmbedding: FILE: backend/app/rag/indices/knowledge_graph/base.py class KnowledgeGraphIndex (line 21) | class KnowledgeGraphIndex(BaseIndex[IndexLPG]): method __init__ (line 42) | def __init__( method from_existing (line 60) | def from_existing( method _insert_nodes (line 82) | def _insert_nodes(self, nodes: Sequence[BaseNode]): method _build_index_from_nodes (line 95) | def _build_index_from_nodes(self, nodes: Optional[Sequence[BaseNode]])... method as_retriever (line 100) | def as_retriever(self, **kwargs: Any): method _insert (line 108) | def _insert(self, nodes: Sequence[BaseNode], **insert_kwargs: Any) -> ... method ref_doc_info (line 112) | def ref_doc_info(self) -> Dict[str, RefDocInfo]: method _delete_node (line 119) | def _delete_node(self, node_id: str, **delete_kwargs: Any) -> None: FILE: backend/app/rag/indices/knowledge_graph/extractor.py class ExtractGraphTriplet (line 21) | class ExtractGraphTriplet(dspy.Signature): class ExtractCovariate (line 61) | class ExtractCovariate(dspy.Signature): function get_relation_metadata_from_node (line 83) | def get_relation_metadata_from_node(node: BaseNode): class Extractor (line 97) | class Extractor(dspy.Module): method __init__ (line 98) | def __init__(self, dspy_lm: dspy.LM): method forward (line 104) | def forward(self, text): class SimpleGraphExtractor (line 131) | class SimpleGraphExtractor: method __init__ (line 132) | def __init__( method extract (line 139) | def extract(self, text: str, node: BaseNode): method _to_df (line 152) | def _to_df( FILE: backend/app/rag/indices/knowledge_graph/graph_store/helpers.py function get_weight_score (line 30) | def get_weight_score( function get_degree_score (line 47) | def get_degree_score(in_degree: int, out_degree: int, degree_coefficient... function calculate_relationship_score (line 51) | def calculate_relationship_score( function get_default_embed_model (line 70) | def get_default_embed_model() -> BaseEmbedding: function get_query_embedding (line 74) | def get_query_embedding(query: str, embed_model: BaseEmbedding = None) -... function get_text_embedding (line 80) | def get_text_embedding(text: str, embed_model: BaseEmbedding = None) -> ... function get_entity_description_embedding (line 86) | def get_entity_description_embedding( function get_entity_metadata_embedding (line 93) | def get_entity_metadata_embedding( function get_relationship_description_embedding (line 100) | def get_relationship_description_embedding( FILE: backend/app/rag/indices/knowledge_graph/graph_store/schema.py class KnowledgeGraphStore (line 7) | class KnowledgeGraphStore(ABC): method save (line 9) | def save(self, entities_df, relationships_df) -> None: method retrieve_with_weight (line 14) | def retrieve_with_weight( FILE: backend/app/rag/indices/knowledge_graph/graph_store/tidb_graph_editor.py class TiDBGraphEditor (line 22) | class TiDBGraphEditor: method __init__ (line 26) | def __init__( method get_entity (line 44) | def get_entity(self, session: Session, entity_id: int) -> Optional[SQL... method update_entity (line 47) | def update_entity( method get_entity_subgraph (line 87) | def get_entity_subgraph( method get_relationship (line 117) | def get_relationship( method update_relationship (line 122) | def update_relationship( method search_similar_entities (line 152) | def search_similar_entities( method create_synopsis_entity (line 163) | def create_synopsis_entity( FILE: backend/app/rag/indices/knowledge_graph/graph_store/tidb_graph_store.py function cosine_distance (line 49) | def cosine_distance(v1, v2): class MergeEntities (line 53) | class MergeEntities(dspy.Signature): class MergeEntitiesProgram (line 71) | class MergeEntitiesProgram(dspy.Module): method __init__ (line 72) | def __init__(self): method forward (line 75) | def forward(self, entities: List[Entity]): class TiDBGraphStore (line 83) | class TiDBGraphStore(KnowledgeGraphStore): method __init__ (line 84) | def __init__( method ensure_table_schema (line 117) | def ensure_table_schema(self) -> None: method drop_table_schema (line 163) | def drop_table_schema(self) -> None: method close_session (line 193) | def close_session(self) -> None: method save (line 198) | def save(self, chunk_id, entities_df, relationships_df): method create_relationship (line 284) | def create_relationship( method get_subgraph_by_relationship_ids (line 315) | def get_subgraph_by_relationship_ids( method get_or_create_entity (line 367) | def get_or_create_entity(self, entity: Entity, commit: bool = True) ->... method _try_merge_entities (line 468) | def _try_merge_entities(self, entities: List[Entity]) -> Entity: method retrieve_with_weight (line 478) | def retrieve_with_weight( method fetch_entity_degrees (line 591) | def fetch_entity_degrees( method search_relationships_weight (line 632) | def search_relationships_weight( method fetch_similar_entities_by_post_filter (line 755) | def fetch_similar_entities_by_post_filter( method fetch_similar_entities (line 796) | def fetch_similar_entities( method retrieve_graph_data (line 833) | def retrieve_graph_data( method retrieve_neighbors (line 934) | def retrieve_neighbors( method get_chunks_by_relationships (line 1052) | def get_chunks_by_relationships( method get_entire_knowledge_graph (line 1129) | def get_entire_knowledge_graph(self) -> RetrievedKnowledgeGraph: method stream_entire_knowledge_graph (line 1186) | def stream_entire_knowledge_graph(self, chunk_size: int = 5000): FILE: backend/app/rag/indices/knowledge_graph/schema.py class Entity (line 5) | class Entity(BaseModel): class EntityWithID (line 25) | class EntityWithID(Entity): class SynopsisInfo (line 31) | class SynopsisInfo(BaseModel): class SynopsisEntity (line 42) | class SynopsisEntity(Entity): class ExistingSynopsisEntity (line 50) | class ExistingSynopsisEntity(SynopsisEntity): class Relationship (line 56) | class Relationship(BaseModel): class RelationshipReasoning (line 73) | class RelationshipReasoning(Relationship): class KnowledgeGraph (line 83) | class KnowledgeGraph(BaseModel): class EntityCovariateInput (line 94) | class EntityCovariateInput(BaseModel): class EntityCovariateOutput (line 101) | class EntityCovariateOutput(BaseModel): class DecomposedFactors (line 113) | class DecomposedFactors(BaseModel): FILE: backend/app/rag/indices/vector_search/vector_store/tidb_vector_store.py function node_to_relation_dict (line 32) | def node_to_relation_dict(node: BaseNode) -> dict: class TiDBVectorStore (line 44) | class TiDBVectorStore(BasePydanticVectorStore): method __init__ (line 53) | def __init__( method ensure_table_schema (line 73) | def ensure_table_schema(self) -> None: method drop_table_schema (line 93) | def drop_table_schema(self): method close_session (line 105) | def close_session(self) -> None: method client (line 111) | def client(self) -> Any: method class_name (line 116) | def class_name(cls) -> str: method add (line 119) | def add(self, nodes: List[BaseNode], **add_kwargs: Any) -> List[str]: method delete (line 149) | def delete(self, ref_doc_id: str, **delete_kwargs: Any) -> None: method query (line 167) | def query(self, query: VectorStoreQuery, **kwargs: Any) -> VectorStore... FILE: backend/app/rag/knowledge_base/config.py function get_kb_llm (line 15) | def get_kb_llm(session: Session, kb: KnowledgeBase): function get_kb_dspy_llm (line 25) | def get_kb_dspy_llm(session: Session, kb: KnowledgeBase): function get_kb_embed_model (line 30) | def get_kb_embed_model(session: Session, kb: KnowledgeBase) -> BaseEmbed... FILE: backend/app/rag/knowledge_base/index_store.py function get_kb_tidb_vector_store (line 13) | def get_kb_tidb_vector_store(session: Session, kb: KnowledgeBase) -> TiD... function init_kb_tidb_vector_store (line 19) | def init_kb_tidb_vector_store(session: Session, kb: KnowledgeBase) -> Ti... function get_kb_tidb_graph_store (line 25) | def get_kb_tidb_graph_store(session: Session, kb: KnowledgeBase) -> TiDB... function init_kb_tidb_graph_store (line 45) | def init_kb_tidb_graph_store(session: Session, kb: KnowledgeBase) -> TiD... function get_kb_tidb_graph_editor (line 51) | def get_kb_tidb_graph_editor(session: Session, kb: KnowledgeBase) -> TiD... FILE: backend/app/rag/knowledge_base/schema.py class KBIndexType (line 4) | class KBIndexType(str, Enum): FILE: backend/app/rag/llms/dspy.py function get_dspy_lm_by_llama_llm (line 6) | def get_dspy_lm_by_llama_llm(llama_llm: BaseLLM) -> dspy.LM: function enforce_trailing_slash (line 81) | def enforce_trailing_slash(url: str): FILE: backend/app/rag/llms/provider.py class LLMProvider (line 7) | class LLMProvider(str, enum.Enum): class LLMProviderOption (line 19) | class LLMProviderOption(BaseModel): FILE: backend/app/rag/llms/resolver.py function resolve_llm (line 10) | def resolve_llm( function get_llm_by_id (line 108) | def get_llm_by_id(session: Session, llm_id: int) -> Optional[LLM]: function must_get_llm_by_id (line 120) | def must_get_llm_by_id(session: Session, llm_id: int) -> LLM: function get_default_llm (line 130) | def get_default_llm(session: Session) -> Optional[LLM]: function must_get_default_llm (line 142) | def must_get_default_llm(session: Session) -> LLM: function get_llm_or_default (line 152) | def get_llm_or_default(session: Session, llm_id: Optional[int]) -> LLM: FILE: backend/app/rag/node_parser/file/markdown.py class MarkdownNodeParser (line 17) | class MarkdownNodeParser(NodeParser): method __init__ (line 38) | def __init__( method from_defaults (line 58) | def from_defaults( method class_name (line 79) | def class_name(cls) -> str: method _parse_nodes (line 83) | def _parse_nodes( method get_nodes_from_node (line 120) | def get_nodes_from_node( method _normalize_node_sizes (line 169) | def _normalize_node_sizes( method _update_metadata (line 243) | def _update_metadata( method _build_node_from_split (line 261) | def _build_node_from_split( method _token_size (line 275) | def _token_size(self, text: str) -> int: FILE: backend/app/rag/postprocessors/metadata_post_filter.py function simple_filter_to_metadata_filters (line 18) | def simple_filter_to_metadata_filters(filters: SimpleMetadataFilter) -> ... class MetadataPostFilter (line 34) | class MetadataPostFilter(BaseNodePostprocessor): method __init__ (line 37) | def __init__( method _postprocess_nodes (line 48) | def _postprocess_nodes( method match_all_filters (line 63) | def match_all_filters(self, node: BaseNode) -> bool: FILE: backend/app/rag/query_dispatcher.py class QueryDispatcher (line 16) | class QueryDispatcher: method __init__ (line 17) | def __init__(self, llm: OpenAI, system_prompt: Optional[str] = None): method route (line 24) | def route(self, query: str, tools: Sequence["BaseTool"]) -> str: function answer (line 41) | def answer(query: str) -> str: FILE: backend/app/rag/question_gen/helpers.py function get_query_bundle_from_chat (line 7) | def get_query_bundle_from_chat( FILE: backend/app/rag/question_gen/query_decomposer.py class SubQuestion (line 9) | class SubQuestion(BaseModel): class SubQuestions (line 20) | class SubQuestions(BaseModel): class DecomposeQuery (line 28) | class DecomposeQuery(dspy.Signature): class DecomposeQueryModule (line 59) | class DecomposeQueryModule(dspy.Module): method __init__ (line 60) | def __init__(self, dspy_lm: dspy.LM): method forward (line 65) | def forward(self, query): class QueryDecomposer (line 70) | class QueryDecomposer: method __init__ (line 71) | def __init__(self, dspy_lm: dspy.LM, complied_program_path: Optional[s... method decompose (line 76) | def decompose(self, query: str) -> SubQuestions: FILE: backend/app/rag/rerankers/baisheng/baisheng_reranker.py class BaishengRerank (line 17) | class BaishengRerank(BaseNodePostprocessor): method __init__ (line 32) | def __init__( method class_name (line 47) | def class_name(cls) -> str: method _postprocess_nodes (line 50) | def _postprocess_nodes( FILE: backend/app/rag/rerankers/local/local_reranker.py class LocalRerank (line 17) | class LocalRerank(BaseNodePostprocessor): method __init__ (line 31) | def __init__( method class_name (line 43) | def class_name(cls) -> str: method _postprocess_nodes (line 46) | def _postprocess_nodes( FILE: backend/app/rag/rerankers/provider.py class RerankerProvider (line 6) | class RerankerProvider(str, enum.Enum): class RerankerProviderOption (line 16) | class RerankerProviderOption(BaseModel): FILE: backend/app/rag/rerankers/resolver.py function resolve_reranker_by_id (line 18) | def resolve_reranker_by_id( function resolve_reranker (line 31) | def resolve_reranker( function get_default_reranker_model (line 92) | def get_default_reranker_model( function must_get_default_reranker_model (line 108) | def must_get_default_reranker_model(session: Session) -> BaseNodePostpro... FILE: backend/app/rag/rerankers/vllm/vllm_reranker.py class VLLMRerank (line 17) | class VLLMRerank(BaseNodePostprocessor): method __init__ (line 25) | def __init__( method class_name (line 37) | def class_name(cls) -> str: method _postprocess_nodes (line 40) | def _postprocess_nodes( FILE: backend/app/rag/retrievers/chunk/fusion_retriever.py class ChunkFusionRetriever (line 21) | class ChunkFusionRetriever(MultiKBFusionRetriever, ChunkRetriever): method __init__ (line 22) | def __init__( method _fusion (line 54) | def _fusion( method _simple_fusion (line 59) | def _simple_fusion( method retrieve_chunks (line 78) | def retrieve_chunks( FILE: backend/app/rag/retrievers/chunk/helpers.py function map_nodes_to_chunks (line 8) | def map_nodes_to_chunks(nodes_with_score: List[NodeWithScore]) -> List[R... FILE: backend/app/rag/retrievers/chunk/schema.py class RerankerConfig (line 9) | class RerankerConfig(BaseModel): class MetadataFilterConfig (line 15) | class MetadataFilterConfig(BaseModel): class VectorSearchRetrieverConfig (line 20) | class VectorSearchRetrieverConfig(BaseModel): class KBChunkRetrievalConfig (line 28) | class KBChunkRetrievalConfig(BaseModel): class ChunkRetrievalConfig (line 32) | class ChunkRetrievalConfig(BaseModel): class RetrievedChunkDocument (line 39) | class RetrievedChunkDocument(BaseModel): class RetrievedChunk (line 45) | class RetrievedChunk(BaseModel): class ChunksRetrievalResult (line 53) | class ChunksRetrievalResult(BaseModel): class ChunkRetriever (line 58) | class ChunkRetriever(ABC): method retrieve_chunks (line 59) | def retrieve_chunks( FILE: backend/app/rag/retrievers/chunk/simple_retriever.py class ChunkSimpleRetriever (line 34) | class ChunkSimpleRetriever(BaseRetriever, ChunkRetriever): method __init__ (line 37) | def __init__( method _retrieve (line 83) | def _retrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]: method _build_node_list_from_query_result (line 105) | def _build_node_list_from_query_result( method retrieve_chunks (line 118) | def retrieve_chunks( FILE: backend/app/rag/retrievers/knowledge_graph/fusion_retriever.py class KnowledgeGraphFusionRetriever (line 27) | class KnowledgeGraphFusionRetriever(MultiKBFusionRetriever, KnowledgeGra... method __init__ (line 30) | def __init__( method retrieve_knowledge_graph (line 66) | def retrieve_knowledge_graph( method _fusion (line 92) | def _fusion( method _knowledge_graph_fusion (line 97) | def _knowledge_graph_fusion( FILE: backend/app/rag/retrievers/knowledge_graph/schema.py class MetadataFilterConfig (line 17) | class MetadataFilterConfig(BaseModel): class KnowledgeGraphRetrieverConfig (line 22) | class KnowledgeGraphRetrieverConfig(BaseModel): class StoredKnowledgeGraphVersion (line 32) | class StoredKnowledgeGraphVersion(int, Enum): class StoredSubGraph (line 36) | class StoredSubGraph(BaseModel): class StoredKnowledgeGraph (line 43) | class StoredKnowledgeGraph(StoredSubGraph): class RetrievedEntity (line 58) | class RetrievedEntity(BaseModel): method global_id (line 73) | def global_id(self) -> str: method __hash__ (line 76) | def __hash__(self): class RetrievedRelationship (line 80) | class RetrievedRelationship(BaseModel): method global_id (line 98) | def global_id(self) -> str: method __hash__ (line 101) | def __hash__(self): class RetrievedSubGraph (line 105) | class RetrievedSubGraph(BaseModel): class RetrievedKnowledgeGraph (line 122) | class RetrievedKnowledgeGraph(RetrievedSubGraph): method to_subqueries_dict (line 137) | def to_subqueries_dict(self) -> dict: method to_stored_graph_dict (line 159) | def to_stored_graph_dict(self) -> dict: method to_stored_graph (line 163) | def to_stored_graph(self) -> StoredKnowledgeGraph: class KnowledgeGraphRetriever (line 179) | class KnowledgeGraphRetriever(ABC): method retrieve_knowledge_graph (line 180) | def retrieve_knowledge_graph(self, query_str: str) -> KnowledgeGraphRe... class KnowledgeGraphNode (line 211) | class KnowledgeGraphNode(BaseNode): method __init__ (line 212) | def __init__(self, *args: Any, **kwargs: Any) -> None: method get_type (line 254) | def get_type(cls) -> str: method get_content (line 257) | def get_content(self, metadata_mode: MetadataMode = MetadataMode.ALL) ... method _get_entities_str (line 272) | def _get_entities_str(self) -> str: method _get_relationships_str (line 282) | def _get_relationships_str(self) -> str: method _get_knowledge_graph_str (line 295) | def _get_knowledge_graph_str(self) -> str: method set_content (line 302) | def set_content(self, kg: RetrievedKnowledgeGraph): method hash (line 321) | def hash(self) -> str: FILE: backend/app/rag/retrievers/knowledge_graph/simple_retriever.py class KnowledgeGraphSimpleRetriever (line 23) | class KnowledgeGraphSimpleRetriever(BaseRetriever, KnowledgeGraphRetriev... method __init__ (line 24) | def __init__( method _retrieve (line 55) | def _retrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]: method retrieve_knowledge_graph (line 80) | def retrieve_knowledge_graph( FILE: backend/app/rag/retrievers/multiple_knowledge_base.py class FusionRetrievalBaseConfig (line 22) | class FusionRetrievalBaseConfig(BaseModel): class MultiKBFusionRetriever (line 28) | class MultiKBFusionRetriever(BaseRetriever): method __init__ (line 29) | def __init__( method _retrieve (line 54) | def _retrieve(self, query_bundle: QueryBundle) -> List[NodeWithScore]: method _gen_sub_queries (line 77) | def _gen_sub_queries(self, query_bundle: QueryBundle) -> List[QueryBun... method _fusion (line 82) | def _fusion( FILE: backend/app/rag/semantic_cache/base.py class SemanticItem (line 16) | class SemanticItem(BaseModel): class SemanticCandidate (line 23) | class SemanticCandidate(BaseModel): class SemanticGroup (line 29) | class SemanticGroup(BaseModel): class QASemanticOutput (line 35) | class QASemanticOutput(BaseModel): class QASemanticSearchModule (line 55) | class QASemanticSearchModule(dspy.Signature): class SemanticSearchProgram (line 80) | class SemanticSearchProgram(dspy.Module): method __init__ (line 81) | def __init__(self, dspy_lm: dspy.LM): method forward (line 86) | def forward(self, query: str, candidats: SemanticGroup): class SemanticCacheManager (line 91) | class SemanticCacheManager: method __init__ (line 92) | def __init__( method get_query_embedding (line 109) | def get_query_embedding(self, query: str): method add_cache (line 112) | def add_cache( method search (line 133) | def search( FILE: backend/app/rag/types.py class MyCBEventType (line 6) | class MyCBEventType(str, enum.Enum): class ChatEventType (line 32) | class ChatEventType(int, enum.Enum): class ChatMessageSate (line 41) | class ChatMessageSate(int, enum.Enum): FILE: backend/app/rag/utils.py function _parse_response_format (line 5) | def _parse_response_format(response_format_str: str) -> Dict[str, str]: function parse_goal_response_format (line 26) | def parse_goal_response_format(goal: str) -> Tuple[str, Dict[str, str]]: FILE: backend/app/repositories/base_repo.py class BaseRepo (line 4) | class BaseRepo: method get (line 7) | def get(self, session: Session, id: int): method get_all (line 10) | def get_all(self, session: Session): method create (line 13) | def create(self, session: Session, obj: SQLModel): FILE: backend/app/repositories/chat.py class ChatRepo (line 16) | class ChatRepo(BaseRepo): method paginate (line 19) | def paginate( method get (line 55) | def get( method must_get (line 64) | def must_get( method update (line 74) | def update( method delete (line 88) | def delete(self, session: Session, chat: Chat): method get_last_message (line 93) | def get_last_message(self, session: Session, chat: Chat) -> Optional[C... method get_messages (line 100) | def get_messages( method get_message (line 111) | def get_message( method must_get_message (line 123) | def must_get_message( method create_message (line 133) | def create_message( method find_recent_assistant_messages_by_goal (line 153) | def find_recent_assistant_messages_by_goal( method find_best_answer_for_question (line 190) | def find_best_answer_for_question( method chat_trend_by_user (line 238) | def chat_trend_by_user( method chat_trend_by_origin (line 259) | def chat_trend_by_origin( method list_chat_origins (line 293) | def list_chat_origins( FILE: backend/app/repositories/chat_engine.py class ChatEngineRepo (line 15) | class ChatEngineRepo(BaseRepo): method get (line 18) | def get( method must_get (line 28) | def must_get( method paginate (line 36) | def paginate( method get_default_engine (line 49) | def get_default_engine(self, session: Session) -> Optional[ChatEngine]: method has_default (line 56) | def has_default(self, session: Session) -> bool: method get_engine_by_name (line 66) | def get_engine_by_name(self, session: Session, name: str) -> Optional[... method create (line 73) | def create(self, session: Session, obj: ChatEngine): method update (line 85) | def update( method delete (line 106) | def delete(self, session: Session, chat_engine: ChatEngine) -> ChatEng... FILE: backend/app/repositories/chunk.py class ChunkRepo (line 12) | class ChunkRepo(BaseRepo): method __init__ (line 13) | def __init__(self, chunk_model: Type[SQLModel]): method document_exists_chunks (line 16) | def document_exists_chunks(self, session: Session, document_id: int) -... method get_documents_by_chunk_ids (line 24) | def get_documents_by_chunk_ids( method get_document_chunks (line 36) | def get_document_chunks(self, session: Session, document_id: int): method fetch_by_document_ids (line 41) | def fetch_by_document_ids(self, session: Session, document_ids: list[i... method count (line 46) | def count(self, session: Session): method delete_by_datasource (line 49) | def delete_by_datasource(self, session: Session, datasource_id: int): method delete_by_document (line 58) | def delete_by_document(self, session: Session, document_id: int): FILE: backend/app/repositories/data_source.py class DataSourceRepo (line 14) | class DataSourceRepo(BaseRepo): method paginate (line 17) | def paginate( method get (line 29) | def get( method delete (line 40) | def delete(self, session: Session, data_source: DataSource) -> None: FILE: backend/app/repositories/document.py class DocumentRepo (line 13) | class DocumentRepo(BaseRepo): method paginate (line 16) | def paginate( method must_get (line 63) | def must_get(self, session: Session, doc_id: int) -> Type[Document]: method delete_by_datasource (line 69) | def delete_by_datasource(self, session: Session, datasource_id: int): method fetch_by_ids (line 73) | def fetch_by_ids(self, session: Session, document_ids: list[int]) -> l... FILE: backend/app/repositories/embedding_model.py class EmbeddingModelRepo (line 18) | class EmbeddingModelRepo(BaseRepo): method paginate (line 21) | def paginate( method get (line 31) | def get(self, session: Session, model_id: int) -> Optional[EmbeddingMo... method must_get (line 34) | def must_get(self, session: Session, model_id: int) -> Type[EmbeddingM... method exists_any_model (line 40) | def exists_any_model(self, session: Session) -> bool: method create (line 44) | def create(self, session: Session, create: EmbeddingModelCreate): method update (line 68) | def update( method delete (line 82) | def delete(self, session: Session, model: EmbeddingModel): method get_default (line 95) | def get_default(self, session: Session) -> Type[EmbeddingModel]: method has_default (line 99) | def has_default(self, session: Session) -> bool: method must_get_default (line 102) | def must_get_default(self, session: Session) -> Type[EmbeddingModel]: method _unset_default (line 108) | def _unset_default(self, session: Session): method set_default (line 115) | def set_default(self, session: Session, model: EmbeddingModel): FILE: backend/app/repositories/feedback.py class FeedbackRepo (line 11) | class FeedbackRepo(BaseRepo): method paginate (line 14) | def paginate( method list_feedback_origins (line 52) | def list_feedback_origins( FILE: backend/app/repositories/graph.py class GraphRepo (line 12) | class GraphRepo: method __init__ (line 13) | def __init__( method count_entities (line 23) | def count_entities(self, session: Session): method count_relationships (line 26) | def count_relationships(self, session: Session): method delete_orphaned_entities (line 29) | def delete_orphaned_entities(self, session: Session): method delete_data_source_relationships (line 45) | def delete_data_source_relationships(self, session: Session, datasourc... method delete_document_relationships (line 57) | def delete_document_relationships(self, session: Session, document_id:... function get_kb_graph_repo (line 67) | def get_kb_graph_repo(kb: KnowledgeBase) -> GraphRepo: FILE: backend/app/repositories/knowledge_base.py class KnowledgeBaseRepo (line 32) | class KnowledgeBaseRepo(BaseRepo): method paginate (line 35) | def paginate( method get (line 45) | def get( method must_get (line 55) | def must_get( method get_by_ids (line 63) | def get_by_ids( method update (line 70) | def update( method delete (line 84) | def delete(self, session: Session, knowledge_base: KnowledgeBase) -> N... method get_index_overview (line 89) | def get_index_overview(self, session: Session, kb: KnowledgeBase) -> d... method count_data_sources (line 116) | def count_data_sources(self, session: Session, kb: KnowledgeBase) -> int: method count_documents (line 123) | def count_documents(self, session: Session, kb: KnowledgeBase) -> int: method count_chunks (line 128) | def count_chunks(self, session: Session, kb: KnowledgeBase): method count_relationships (line 132) | def count_relationships(self, session: Session, kb: KnowledgeBase): method count_entities (line 136) | def count_entities(self, session: Session, kb: KnowledgeBase): method count_documents_by_vector_index_status (line 140) | def count_documents_by_vector_index_status( method count_chunks_by_kg_index_status (line 156) | def count_chunks_by_kg_index_status( method batch_update_document_status (line 172) | def batch_update_document_status( method set_failed_documents_status_to_pending (line 183) | def set_failed_documents_status_to_pending( method batch_update_chunk_status (line 196) | def batch_update_chunk_status( method set_failed_chunks_status_to_pending (line 211) | def set_failed_chunks_status_to_pending( method list_vector_index_built_errors (line 228) | def list_vector_index_built_errors( method list_kg_index_built_errors (line 263) | def list_kg_index_built_errors( method get_kb_datasource (line 303) | def get_kb_datasource( method must_get_kb_datasource (line 315) | def must_get_kb_datasource( method add_kb_datasource (line 329) | def add_kb_datasource( method list_kb_datasources (line 341) | def list_kb_datasources( method remove_kb_datasource (line 355) | def remove_kb_datasource( method list_linked_chat_engines (line 369) | def list_linked_chat_engines( FILE: backend/app/repositories/llm.py class LLMRepo (line 17) | class LLMRepo(BaseRepo): method paginate (line 20) | def paginate(self, session: Session, params: Params = Depends()) -> Pa... method get (line 26) | def get(self, session: Session, llm_id: int) -> Optional[LLM]: method must_get (line 29) | def must_get(self, session: Session, llm_id: int) -> LLM: method exists_any_model (line 35) | def exists_any_model(self, session: Session) -> bool: method create (line 39) | def create(self, session: Session, llm: LLM) -> LLM: method update (line 55) | def update(self, session: Session, llm: LLM, llm_update: LLMUpdate) ->... method get_default (line 66) | def get_default(self, session: Session) -> Type[LLM] | None: method has_default (line 75) | def has_default(self, session: Session) -> bool: method must_get_default (line 78) | def must_get_default(self, session: Session) -> Type[LLM]: method _unset_default (line 84) | def _unset_default(self, session: Session): method set_default (line 87) | def set_default(self, session: Session, llm: LLM) -> LLM: method delete (line 95) | def delete(self, session: Session, llm: LLM): FILE: backend/app/repositories/reranker_model.py class RerankerModelRepo (line 16) | class RerankerModelRepo(BaseRepo): method paginate (line 19) | def paginate( method get (line 29) | def get(self, session: Session, model_id: int) -> Optional[RerankerMod... method must_get (line 32) | def must_get(self, session: Session, model_id: int) -> RerankerModel: method exists_any_model (line 38) | def exists_any_model(self, session: Session) -> bool: method create (line 42) | def create(self, session: Session, reranker_model: RerankerModel) -> R... method update (line 58) | def update( method delete (line 72) | def delete(self, db_session: Session, reranker_model: RerankerModel): method get_default (line 85) | def get_default(self, session: Session) -> Optional[RerankerModel]: method has_default (line 89) | def has_default(self, session: Session) -> bool: method must_get_default (line 92) | def must_get_default(self, session: Session) -> RerankerModel: method unset_default (line 98) | def unset_default(self, session: Session): method set_default (line 101) | def set_default(self, session: Session, model: RerankerModel): FILE: backend/app/repositories/staff_action_log.py class StaffActionRepo (line 7) | class StaffActionRepo(BaseRepo): method create_staff_action_log (line 10) | def create_staff_action_log( FILE: backend/app/repositories/user.py class UserRepo (line 9) | class UserRepo(BaseRepo): method search_users (line 12) | def search_users( FILE: backend/app/site_settings/__init__.py function get_settings_from_db (line 14) | def get_settings_from_db(session: Session): function get_db_last_updated_at (line 21) | def get_db_last_updated_at(session: Session): class SiteSettingProxy (line 42) | class SiteSettingProxy: method update_db_cache (line 48) | def update_db_cache(self, force_check=False): method get_db_cache (line 66) | def get_db_cache(self) -> dict: method __getattr__ (line 71) | def __getattr__(self, name: str) -> SettingType: method get_setting (line 74) | def get_setting(self, name: str) -> SettingType: method get_all_settings (line 83) | def get_all_settings( method get_client_settings (line 103) | def get_client_settings(self) -> dict: method setting_exists (line 109) | def setting_exists(self, name: str) -> bool: method update_setting (line 112) | def update_setting(self, session: Session, name: str, value: SettingTy... FILE: backend/app/site_settings/default.py class DefaultSettings (line 11) | class DefaultSettings: method __init__ (line 17) | def __init__(self): method load_default_from_yaml (line 23) | def load_default_from_yaml(self): FILE: backend/app/site_settings/types.py class SettingValue (line 9) | class SettingValue: FILE: backend/app/staff_action/__init__.py function create_staff_action_log (line 6) | def create_staff_action_log( FILE: backend/app/tasks/build_index.py function build_index_for_document (line 27) | def build_index_for_document(self, knowledge_base_id: int, document_id: ... function build_kg_index_for_chunk (line 96) | def build_kg_index_for_chunk(knowledge_base_id: int, chunk_id: UUID): FILE: backend/app/tasks/evaluate.py function add_evaluation_task (line 42) | def add_evaluation_task(evaluation_task_id: int): function add_evaluation_task_item (line 68) | def add_evaluation_task_item(evaluation_task_item_id: int): function evaluate_task (line 114) | def evaluate_task(evaluation_task_item: EvaluationTaskItem): function generate_answer_by_autoflow (line 184) | def generate_answer_by_autoflow( function parse_langfuse_trace_id_from_url (line 214) | def parse_langfuse_trace_id_from_url(trace_url: str) -> str: FILE: backend/app/tasks/knowledge_base.py function import_documents_for_knowledge_base (line 30) | def import_documents_for_knowledge_base(kb_id: int): function import_documents_from_kb_datasource (line 48) | def import_documents_from_kb_datasource(kb_id: int, data_source_id: int): function stats_for_knowledge_base (line 86) | def stats_for_knowledge_base(kb_id: int): function purge_knowledge_base_related_resources (line 108) | def purge_knowledge_base_related_resources(kb_id: int): function purge_kb_datasource_related_resources (line 173) | def purge_kb_datasource_related_resources(kb_id: int, datasource_id: int): FILE: backend/app/types.py class MimeTypes (line 4) | class MimeTypes(str, enum.Enum): FILE: backend/app/utils/aes.py class AESCipher (line 7) | class AESCipher: method __init__ (line 8) | def __init__(self, key: bytes) -> None: method encrypt (line 12) | def encrypt(self, plain_text: str) -> bytes: method decrypt (line 24) | def decrypt(self, encrypted_text: bytes) -> str: FILE: backend/app/utils/namespace.py function format_namespace (line 4) | def format_namespace(namespace: Optional[str] = None) -> str: FILE: backend/app/utils/singleflight_cache.py function singleflight_cache (line 5) | def singleflight_cache(func): FILE: backend/app/utils/tracing.py class LangfuseContextManager (line 8) | class LangfuseContextManager: method __init__ (line 11) | def __init__(self, instrumentor: LlamaIndexInstrumentor): method observe (line 15) | def observe(self, **kwargs): method span (line 29) | def span( method trace_id (line 59) | def trace_id(self) -> Optional[str]: method trace_url (line 66) | def trace_url(self) -> Optional[str]: FILE: backend/app/utils/uuid6.py class UUID (line 16) | class UUID(uuid.UUID): method __init__ (line 19) | def __init__( method subsec (line 56) | def subsec(self) -> int: method time (line 60) | def time(self) -> int: function _subsec_decode (line 72) | def _subsec_decode(value: int) -> int: function _subsec_encode (line 76) | def _subsec_encode(value: int) -> int: function uuid6 (line 84) | def uuid6(clock_seq: int = None) -> UUID: function uuid7 (line 113) | def uuid7() -> UUID: FILE: backend/bootstrap.py function ensure_admin_user (line 12) | async def ensure_admin_user( function reset_admin_password (line 40) | async def reset_admin_password( function ensure_default_chat_engine (line 63) | async def ensure_default_chat_engine(session: AsyncSession) -> None: function bootstrap (line 80) | async def bootstrap( function main (line 98) | def main(email: str | None, password: str | None, reset_password: bool): FILE: backend/dspy_program.py function save_decompose_query_program (line 7) | def save_decompose_query_program(): FILE: backend/local_embedding_reranker/main.py function healthz (line 33) | def healthz(): function get_embedding_model (line 41) | def get_embedding_model(model_name: str) -> SentenceTransformer: function get_reranker_model (line 53) | def get_reranker_model(model_name: str) -> CrossEncoder: class EmbeddingRequest (line 66) | class EmbeddingRequest(BaseModel): class EmbeddingResponse (line 72) | class EmbeddingResponse(BaseModel): function get_texts_embedding (line 78) | def get_texts_embedding(request: EmbeddingRequest) -> EmbeddingResponse: class RerankerRequest (line 90) | class RerankerRequest(BaseModel): class RerankerResponse (line 96) | class RerankerResponse(BaseModel): function reranker_texts (line 102) | def reranker_texts(request: RerankerRequest) -> RerankerResponse: function lifespan (line 110) | async def lifespan(app: FastAPI): FILE: backend/main.py function custom_generate_unique_id (line 62) | def custom_generate_unique_id(route: APIRoute) -> str: function lifespan (line 76) | async def lifespan(app: FastAPI): function identify_browser (line 104) | async def identify_browser(request: Request, call_next): function cli (line 124) | def cli(): function runserver (line 132) | def runserver(host, port, workers): function runeval (line 161) | def runeval(dataset, llm_provider, run_name, tidb_ai_chat_engine): function runeval_dataset (line 191) | def runeval_dataset(csv, llm_provider, run_name, tidb_ai_chat_engine, ru... function generate_answer_by_tidb_ai (line 205) | def generate_answer_by_tidb_ai(query: str): FILE: backend/tests/conftest.py function env (line 6) | def env(): FILE: backend/tests/test_dynamic_models.py function dynamic_model_creation (line 7) | def dynamic_model_creation(dim, ns): function test_concurrent_dynamic_model_creation (line 14) | def test_concurrent_dynamic_model_creation(): FILE: backend/tests/test_llms.py function check_llm_answer_simple_question (line 31) | def check_llm_answer_simple_question(llm: BaseLLM): function check_dspy_lm_decompose_question (line 40) | def check_dspy_lm_decompose_question(lm: dspy.LM): function check_dspy_lm_extract_graph (line 50) | def check_dspy_lm_extract_graph(lm: dspy.LM): function test_openai (line 66) | def test_openai(): function test_ollama (line 83) | def test_ollama(): function test_gitee_ai (line 95) | def test_gitee_ai(): function test_bedrock (line 108) | def test_bedrock(): function test_vertex_ai (line 125) | def test_vertex_ai(): function test_gemini (line 139) | def test_gemini(): function test_azure_ai (line 152) | def test_azure_ai(): FILE: core/autoflow/chunkers/base.py class Chunker (line 7) | class Chunker(BaseComponent): method chunk (line 9) | def chunk(self, document: Document) -> Document: FILE: core/autoflow/chunkers/helper.py function get_chunker_for_datatype (line 5) | def get_chunker_for_datatype(datatype: DataType) -> Chunker: FILE: core/autoflow/chunkers/text.py class TextChunker (line 8) | class TextChunker(Chunker): method __init__ (line 11) | def __init__(self, config: Optional[TextChunkerConfig] = TextChunkerCo... method chunk (line 20) | def chunk(self, document: Document) -> Document: FILE: core/autoflow/configs/chunkers/base.py class ChunkerConfig (line 6) | class ChunkerConfig(BaseModel): method validate_and_create_config (line 21) | def validate_and_create_config(self) -> "ChunkerConfig": FILE: core/autoflow/configs/chunkers/text.py class TextChunkerConfig (line 8) | class TextChunkerConfig(BaseModel): FILE: core/autoflow/configs/db.py class DatabaseConfig (line 6) | class DatabaseConfig(BaseModel): FILE: core/autoflow/configs/knowledge_base.py class IndexMethod (line 12) | class IndexMethod(str, Enum): class Version (line 23) | class Version(int, Enum): class KnowledgeBaseConfig (line 27) | class KnowledgeBaseConfig(BaseModel): FILE: core/autoflow/configs/main.py class Config (line 6) | class Config(BaseModel): FILE: core/autoflow/configs/models/embeddings/base.py class EmbeddingModelConfig (line 8) | class EmbeddingModelConfig(BaseModel): method validate_and_create_config (line 24) | def validate_and_create_config(self) -> "EmbeddingModelConfig": FILE: core/autoflow/configs/models/embeddings/common.py class BaseEmbeddingConfig (line 6) | class BaseEmbeddingConfig(BaseModel): FILE: core/autoflow/configs/models/embeddings/jina_ai.py class JinaAIEmbeddingConfig (line 4) | class JinaAIEmbeddingConfig(BaseEmbeddingConfig): FILE: core/autoflow/configs/models/embeddings/openai.py class OpenAIEmbeddingConfig (line 4) | class OpenAIEmbeddingConfig(BaseEmbeddingConfig): FILE: core/autoflow/configs/models/llms/base.py class LLMConfig (line 10) | class LLMConfig(BaseModel): method validate_and_create_config (line 25) | def validate_and_create_config(self) -> "LLMConfig": FILE: core/autoflow/configs/models/llms/common.py class BaseLLMConfig (line 6) | class BaseLLMConfig(BaseModel): FILE: core/autoflow/configs/models/llms/openai.py class OpenAILLMConfig (line 4) | class OpenAILLMConfig(BaseLLMConfig): FILE: core/autoflow/configs/models/manager.py class ManagerConfig (line 8) | class ManagerConfig(BaseModel): FILE: core/autoflow/configs/models/providers/base.py class ModelProviderInfo (line 11) | class ModelProviderInfo(BaseModel): class ProviderConfig (line 32) | class ProviderConfig(BaseModel): FILE: core/autoflow/configs/models/providers/jinaai.py class JinaAIConfig (line 4) | class JinaAIConfig(ProviderConfig): FILE: core/autoflow/configs/models/providers/openai.py class OpenAIConfig (line 4) | class OpenAIConfig(ProviderConfig): FILE: core/autoflow/configs/models/rerankers/base.py class RerankerConfig (line 7) | class RerankerConfig(BaseModel): method validate_and_create_config (line 22) | def validate_and_create_config(self) -> "RerankerConfig": FILE: core/autoflow/configs/models/rerankers/common.py class BaseRerankerConfig (line 4) | class BaseRerankerConfig(BaseModel): FILE: core/autoflow/configs/models/rerankers/jina_ai.py class JinaAIRerankerConfig (line 4) | class JinaAIRerankerConfig(BaseRerankerConfig): FILE: core/autoflow/data_types.py class DataType (line 7) | class DataType(str, Enum): function guess_datatype (line 18) | def guess_datatype(source: Union[str, IO, BinaryIO, TextIO]) -> Optional... function guess_by_filename (line 35) | def guess_by_filename(filename: str) -> Optional[DataType]: FILE: core/autoflow/db.py function get_db_engine_from_config (line 8) | def get_db_engine_from_config(db_config: DatabaseConfig) -> Engine: FILE: core/autoflow/knowledge_base/base.py class KnowledgeBase (line 30) | class KnowledgeBase(BaseComponent): method __init__ (line 37) | def __init__( method _init_stores (line 63) | def _init_stores(self): method _init_indexes (line 80) | def _init_indexes(self): method class_name (line 88) | def class_name(self): method documents (line 91) | def documents(self): method knowledge_graph (line 94) | def knowledge_graph(self): method add (line 97) | def add( method build_index_for_document (line 124) | def build_index_for_document( method add_document (line 159) | def add_document(self, document: Document): method add_documents (line 162) | def add_documents(self, documents: List[Document]): method list_documents (line 165) | def list_documents(self) -> List[Document]: method get_document (line 168) | def get_document(self, doc_id: uuid.UUID) -> Document: method delete_document (line 171) | def delete_document(self, doc_id: uuid.UUID) -> None: method search (line 176) | def search(self): method search_documents (line 180) | def search_documents( method search_knowledge_graph (line 198) | def search_knowledge_graph( method ask (line 214) | def ask(self, question: str) -> ChatResponse: method reset (line 234) | def reset(self): FILE: core/autoflow/knowledge_graph/extractors/base.py class KGExtractor (line 7) | class KGExtractor(BaseComponent): method __init__ (line 8) | def __init__(self, *args, **kwargs): method extract (line 12) | def extract(self, text: str) -> GeneratedKnowledgeGraph: FILE: core/autoflow/knowledge_graph/extractors/simple.py class SimpleKGExtractor (line 11) | class SimpleKGExtractor(KGExtractor): method __init__ (line 12) | def __init__(self, dspy_lm: dspy.LM): method extract (line 18) | def extract(self, text: str) -> GeneratedKnowledgeGraph: FILE: core/autoflow/knowledge_graph/index.py class KnowledgeGraphIndex (line 21) | class KnowledgeGraphIndex(BaseComponent): method __init__ (line 22) | def __init__( method add_text (line 34) | def add_text(self, text: str) -> Optional[KnowledgeGraph]: method add_chunk (line 38) | def add_chunk(self, chunk: Chunk) -> Optional[KnowledgeGraph]: method retrieve (line 53) | def retrieve( FILE: core/autoflow/knowledge_graph/programs/eval_graph.py class EvaluateKnowledgeGraph (line 13) | class EvaluateKnowledgeGraph(dspy.Signature): class KGEvaluationResult (line 41) | class KGEvaluationResult(BaseModel): class KnowledgeGraphEvaluator (line 47) | class KnowledgeGraphEvaluator(dspy.Module): method __init__ (line 48) | def __init__(self, dspy_lm: dspy.LM): method forward (line 53) | def forward( FILE: core/autoflow/knowledge_graph/programs/extract_covariates.py class InputEntity (line 14) | class InputEntity(BaseModel): class OutputEntity (line 21) | class OutputEntity(BaseModel): class ExtractEntityCovariate (line 33) | class ExtractEntityCovariate(dspy.Signature): class EntityCovariateExtractor (line 56) | class EntityCovariateExtractor(dspy.Module): method __init__ (line 57) | def __init__(self, dspy_lm: dspy.LM): method forward (line 62) | def forward( FILE: core/autoflow/knowledge_graph/programs/extract_graph.py class PredictEntity (line 17) | class PredictEntity(BaseModel): class PredictRelationship (line 32) | class PredictRelationship(BaseModel): class PredictKnowledgeGraph (line 49) | class PredictKnowledgeGraph(BaseModel): method to_pandas (line 59) | def to_pandas(self): class ExtractKnowledgeGraph (line 85) | class ExtractKnowledgeGraph(dspy.Signature): class KnowledgeGraphExtractor (line 118) | class KnowledgeGraphExtractor(dspy.Module): method __init__ (line 119) | def __init__(self, dspy_lm: dspy.LM): method forward (line 124) | def forward(self, text: str) -> GeneratedKnowledgeGraph: FILE: core/autoflow/knowledge_graph/retrievers/base.py class KGRetriever (line 8) | class KGRetriever(ABC): method __init__ (line 9) | def __init__(self, knowledge_graph_store: GraphStore): method retrieve (line 13) | def retrieve( FILE: core/autoflow/knowledge_graph/retrievers/weighted.py class WeightedGraphRetriever (line 45) | class WeightedGraphRetriever(KGRetriever): method __init__ (line 46) | def __init__( method retrieve (line 68) | def retrieve( method _fill_entity (line 170) | def _fill_entity(self, relationships: List[RetrievedRelationship]): method _weighted_search_relationships (line 182) | def _weighted_search_relationships( method _rank_relationships (line 209) | def _rank_relationships( method _calc_relationship_weighted_score (line 244) | def _calc_relationship_weighted_score( method _calc_weight_score (line 257) | def _calc_weight_score(self, weight: float) -> float: method _calc_degree_score (line 271) | def _calc_degree_score(self, in_degree: int, out_degree: int) -> float: FILE: core/autoflow/knowledge_graph/types.py class GeneratedEntity (line 17) | class GeneratedEntity(BaseModel): class GeneratedRelationship (line 23) | class GeneratedRelationship(BaseModel): class GeneratedKnowledgeGraph (line 30) | class GeneratedKnowledgeGraph(BaseModel): method to_create (line 34) | def to_create( class RetrievedEntity (line 66) | class RetrievedEntity(Entity): method __hash__ (line 70) | def __hash__(self): method __eq__ (line 73) | def __eq__(self, other: "RetrievedEntity"): class RetrievedRelationship (line 77) | class RetrievedRelationship(Relationship): method __hash__ (line 81) | def __hash__(self): method __eq__ (line 84) | def __eq__(self, other: "RetrievedRelationship"): class RetrievedKnowledgeGraph (line 88) | class RetrievedKnowledgeGraph(BaseModel): FILE: core/autoflow/loaders/base.py class Loader (line 8) | class Loader(BaseComponent): method load (line 10) | def load( class FileLoader (line 16) | class FileLoader(Loader): method load (line 17) | def load(self, files: str | list[str], **kwargs) -> Generator[Document... method _load_file (line 25) | def _load_file(self, file: str) -> Document: FILE: core/autoflow/loaders/helper.py function get_loader_for_datatype (line 5) | def get_loader_for_datatype(datatype: DataType) -> Loader: FILE: core/autoflow/loaders/markdown.py class MarkdownLoader (line 6) | class MarkdownLoader(FileLoader): method _load_file (line 7) | def _load_file(self, file: str) -> Document: FILE: core/autoflow/loaders/pdf.py class PDFLoader (line 8) | class PDFLoader(FileLoader): method _load_file (line 9) | def _load_file(self, file: str) -> Document: FILE: core/autoflow/loaders/webpage.py class WebpageLoader (line 28) | class WebpageLoader(Loader): method __init__ (line 29) | def __init__( method load (line 38) | def load(self, urls: str | list[str], **kwargs) -> Generator[Document,... FILE: core/autoflow/main.py class Autoflow (line 15) | class Autoflow: method __init__ (line 18) | def __init__( method from_config (line 27) | def from_config(cls, config: Config) -> "Autoflow": method _init_db_engine (line 33) | def _init_db_engine(cls, db_config: DatabaseConfig) -> Engine: method db_engine (line 41) | def db_engine(self) -> Engine: method llm_manager (line 45) | def llm_manager(self) -> "ModelManager": method create_knowledge_base (line 48) | def create_knowledge_base( FILE: core/autoflow/models/embedding_models/litellm.py function get_embeddings (line 6) | def get_embeddings( class LiteLLMEmbedding (line 41) | class LiteLLMEmbedding(BaseEmbedding): method __init__ (line 60) | def __init__( method class_name (line 68) | def class_name(cls) -> str: method _aget_query_embedding (line 71) | async def _aget_query_embedding(self, query: str) -> List[float]: method _aget_text_embedding (line 74) | async def _aget_text_embedding(self, text: str) -> List[float]: method _get_query_embedding (line 77) | def _get_query_embedding(self, query: str) -> List[float]: method _get_text_embedding (line 88) | def _get_text_embedding(self, text: str) -> List[float]: method _get_text_embeddings (line 99) | def _get_text_embeddings(self, texts: List[str]) -> List[List[float]]: FILE: core/autoflow/models/llms/dspy.py function get_dspy_lm_by_llm (line 6) | def get_dspy_lm_by_llm(llm: LLM) -> dspy.LM: FILE: core/autoflow/models/manager.py class ModelManager (line 18) | class ModelManager: method load_from_db (line 22) | def load_from_db(cls): method from_config (line 26) | def from_config(cls): method registry_provider (line 29) | def registry_provider(self, name: ModelProviders, config: ProviderConf... method get_provider_config (line 32) | def get_provider_config(self, name: ModelProviders) -> Optional[Provid... method resolve_llm (line 38) | def resolve_llm( method resolve_embedding_model (line 57) | def resolve_embedding_model( method resolve_rerank_model (line 77) | def resolve_rerank_model( FILE: core/autoflow/models/provider.py class ProviderRegistry (line 4) | class ProviderRegistry(ABC): method register (line 5) | def register(self, name: str): method get_provider_credentials (line 8) | def get_provider_credentials(self): FILE: core/autoflow/models/rerank_models/litellm.py class LiteLLMReranker (line 17) | class LiteLLMReranker(BaseNodePostprocessor): method __init__ (line 23) | def __init__( method class_name (line 33) | def class_name(cls) -> str: method _postprocess_nodes (line 36) | def _postprocess_nodes( FILE: core/autoflow/orms/base.py class UUIDBaseModel (line 12) | class UUIDBaseModel(TableModel): FILE: core/autoflow/storage/doc_store/base.py class DocumentStore (line 8) | class DocumentStore(ABC): method add (line 10) | def add(self, documents: List[Document]) -> List[Document]: method update (line 14) | def update(self, document_id: UUID, update: Dict[str, Any]): method delete (line 18) | def delete(self, document_id: UUID) -> None: method list (line 22) | def list(self, filters: Dict[str, Any] = None) -> List[Document]: method search (line 26) | def search( method get (line 35) | def get(self, document_id: UUID) -> Document: method add_doc_chunks (line 39) | def add_doc_chunks(self, document_id: UUID, chunks: List[Chunk]) -> Li... method list_doc_chunks (line 43) | def list_doc_chunks(self, document_id: UUID) -> List[Chunk]: method get_chunk (line 47) | def get_chunk(self, chunk_id: UUID) -> Chunk: method update_chunk (line 51) | def update_chunk(self, chunk_id: UUID, update: Dict[str, Any]) -> Chunk: method delete_chunk (line 55) | def delete_chunk(self, chunk_id: UUID) -> None: FILE: core/autoflow/storage/doc_store/tidb_doc_store.py function dynamic_create_models (line 31) | def dynamic_create_models( class TiDBDocumentStore (line 103) | class TiDBDocumentStore(DocumentStore): method __init__ (line 110) | def __init__( method class_name (line 124) | def class_name(cls) -> str: method _init_store (line 127) | def _init_store( method add (line 140) | def add(self, documents: List[Document]) -> List[Document]: method update (line 163) | def update(self, document_id: UUID, update: Dict[str, Any]) -> None: method delete (line 169) | def delete(self, document_id: UUID) -> None: method get (line 180) | def get(self, document_id: UUID) -> Document: method list (line 188) | def list(self, filters: Dict[str, Any] = None) -> List[Document]: method search (line 195) | def search( method _convert_to_retrieval_result (line 228) | def _convert_to_retrieval_result( method add_doc_chunks (line 253) | def add_doc_chunks(self, document_id: UUID, chunks: List[Chunk]) -> Li... method list_doc_chunks (line 266) | def list_doc_chunks(self, document_id: UUID) -> List[Chunk]: method get_chunk (line 272) | def get_chunk(self, chunk_id: UUID) -> Chunk: method delete_chunk (line 279) | def delete_chunk(self, chunk_id: UUID) -> None: method update_chunk (line 285) | def update_chunk(self, chunk_id: UUID, update: Dict[str, Any]) -> Chunk: method recreate (line 294) | def recreate(self) -> None: method reset (line 300) | def reset(self) -> None: FILE: core/autoflow/storage/doc_store/types.py class Chunk (line 15) | class Chunk(BaseModel): method hash (line 32) | def hash(self) -> Optional[str]: class RetrievedChunk (line 36) | class RetrievedChunk(Chunk): class Document (line 46) | class Document(BaseModel): method hash (line 64) | def hash(self) -> Optional[str]: class DocumentDescriptor (line 68) | class DocumentDescriptor(BaseModel): class DocumentSearchResult (line 74) | class DocumentSearchResult(BaseModel): FILE: core/autoflow/storage/graph_store/base.py class GraphStore (line 32) | class GraphStore(BaseComponent, ABC): method list_entities (line 37) | def list_entities( method search_entities (line 43) | def search_entities( method get_entity (line 53) | def get_entity(self, entity_id: UUID) -> Entity: method must_get_entity (line 57) | def must_get_entity(self, entity_id: UUID) -> Entity: method create_entity (line 63) | def create_entity( method update_entity (line 74) | def update_entity(self, entity: Entity | UUID, update: EntityUpdate) -... method delete_entity (line 78) | def delete_entity(self, entity_id: UUID) -> None: method delete_orphan_entities (line 82) | def delete_orphan_entities(self): method calc_entity_out_degree (line 88) | def calc_entity_out_degree(self, entity_id: UUID) -> int: method calc_entity_in_degree (line 92) | def calc_entity_in_degree(self, entity_id: UUID) -> int: method calc_entity_degree (line 96) | def calc_entity_degree(self, entity_id: UUID) -> int: method calc_entities_degrees (line 100) | def calc_entities_degrees( method get_relationship (line 108) | def get_relationship(self, relationship_id: UUID) -> Relationship: method list_relationships (line 112) | def list_relationships(self, filters: RelationshipFilters) -> List[Rel... method create_relationship (line 116) | def create_relationship( method update_relationship (line 127) | def update_relationship( method delete_relationship (line 133) | def delete_relationship(self, relationship_id: UUID): method search_relationships (line 137) | def search_relationships( method reset (line 158) | def reset(self): method drop (line 162) | def drop(self): method add (line 168) | def add(self, knowledge_graph: KnowledgeGraphCreate) -> Optional[Knowl... FILE: core/autoflow/storage/graph_store/tidb_graph_store.py function dynamic_create_models (line 40) | def dynamic_create_models( class TiDBGraphStore (line 152) | class TiDBGraphStore(GraphStore): method __init__ (line 159) | def __init__( method _init_store (line 174) | def _init_store( method get_entity (line 189) | def get_entity(self, entity_id: UUID) -> Entity: method list_entities (line 192) | def list_entities( method search_entities (line 200) | def search_entities( method _convert_entity_filters (line 219) | def _convert_entity_filters(self, filters: Optional[EntityFilters]) ->... method create_entity (line 230) | def create_entity( method _get_entity_embedding (line 249) | def _get_entity_embedding(self, name: str, description: str) -> list[f... method find_or_create_entity (line 253) | def find_or_create_entity( method update_entity (line 277) | def update_entity(self, entity: Entity | UUID, update: EntityUpdate) -... method delete_entity (line 302) | def delete_entity(self, entity_id: UUID) -> None: method delete_orphan_entities (line 311) | def delete_orphan_entities(self): method calc_entity_out_degree (line 316) | def calc_entity_out_degree(self, entity_id: UUID) -> int: method calc_entity_in_degree (line 322) | def calc_entity_in_degree(self, entity_id: UUID) -> int: method calc_entity_degree (line 328) | def calc_entity_degree(self, entity_id: UUID) -> int: method calc_entities_degrees (line 337) | def calc_entities_degrees( method get_relationship (line 367) | def get_relationship(self, relationship_id: UUID) -> Relationship: method list_relationships (line 370) | def list_relationships( method search_relationships (line 378) | def search_relationships( method _convert_relationship_filters (line 409) | def _convert_relationship_filters(self, filters: RelationshipFilters) ... method create_relationship (line 481) | def create_relationship( method _get_relationship_embedding (line 515) | def _get_relationship_embedding( method update_relationship (line 529) | def update_relationship( method delete_relationship (line 552) | def delete_relationship(self, relationship_id: UUID): method add (line 557) | def add(self, knowledge_graph: KnowledgeGraphCreate) -> Optional[Knowl... method reset (line 607) | def reset(self): method recreate (line 614) | def recreate(self): method drop (line 622) | def drop(self): FILE: core/autoflow/storage/graph_store/types.py class EntityType (line 12) | class EntityType(str, Enum): method __str__ (line 16) | def __str__(self): class Entity (line 20) | class Entity(BaseModel): class EntityCreate (line 37) | class EntityCreate(BaseModel): class SynopsisEntityCreate (line 44) | class SynopsisEntityCreate(EntityCreate): method validate_entities (line 49) | def validate_entities(self): class EntityFilters (line 55) | class EntityFilters(BaseModel): class EntityUpdate (line 60) | class EntityUpdate(BaseModel): class EntityDegree (line 67) | class EntityDegree(BaseModel): class Relationship (line 76) | class Relationship(BaseModel): class RelationshipCreate (line 94) | class RelationshipCreate(BaseModel): class RelationshipUpdate (line 104) | class RelationshipUpdate(BaseModel): class RelationshipFilters (line 109) | class RelationshipFilters(BaseModel): class KnowledgeGraph (line 147) | class KnowledgeGraph(BaseModel): class KnowledgeGraphCreate (line 155) | class KnowledgeGraphCreate(BaseModel): FILE: core/autoflow/storage/types.py class QueryBundle (line 6) | class QueryBundle(BaseModel): FILE: core/autoflow/utils/hash.py function sha256 (line 5) | def sha256(text: Optional[str]) -> Optional[str]: FILE: core/autoflow/utils/uuid6.py class UUID (line 17) | class UUID(uuid.UUID): method __init__ (line 20) | def __init__( method subsec (line 57) | def subsec(self) -> int: method time (line 61) | def time(self) -> int: function _subsec_decode (line 73) | def _subsec_decode(value: int) -> int: function _subsec_encode (line 77) | def _subsec_encode(value: int) -> int: function uuid6 (line 85) | def uuid6(clock_seq: int = None) -> UUID: function uuid7 (line 114) | def uuid7() -> UUID: FILE: core/autoflow/utils/vector.py function cosine_distance (line 1) | def cosine_distance(v1, v2): FILE: core/examples/streamlit/build-knowledge-search-with-autoflow-and-streamlit.py function on_submit (line 104) | def on_submit(): FILE: core/tests/conftest.py function env (line 18) | def env(): function db_engine (line 24) | def db_engine(): function llm (line 37) | def llm(): function embedding_model (line 42) | def embedding_model(): function tidb_client (line 47) | def tidb_client(db_engine): FILE: core/tests/knowledge_base/test_kb_with_namespace.py function kb (line 12) | def kb(db_engine, llm, embedding_model): function test_add_documents_via_filepath (line 28) | def test_add_documents_via_filepath(kb: KnowledgeBase): function test_add_documents_via_url (line 33) | def test_add_documents_via_url(kb: KnowledgeBase): function test_search_documents (line 38) | def test_search_documents(kb: KnowledgeBase): function test_search_knowledge_graph (line 46) | def test_search_knowledge_graph(kb: KnowledgeBase): FILE: core/tests/knowledge_base/test_kb_without_namespace.py function kb (line 12) | def kb(db_engine, llm, embedding_model): function test_add_documents_via_filepath (line 25) | def test_add_documents_via_filepath(kb: KnowledgeBase): function test_add_documents_via_url (line 30) | def test_add_documents_via_url(kb): function test_search_documents (line 35) | def test_search_documents(kb): function test_search_knowledge_graph (line 43) | def test_search_knowledge_graph(kb): FILE: core/tests/knowledge_graph/programs/test_extract_graph.py function extractor (line 14) | def extractor(llm): function evaluator (line 21) | def evaluator(llm): function test_extract_graph (line 27) | def test_extract_graph(extractor, evaluator): FILE: core/tests/knowledge_graph/test_kg_extractor.py function test_kg_extractor (line 6) | def test_kg_extractor(llm): FILE: core/tests/models/test_model_manager.py function setup_model_manager (line 19) | def setup_model_manager(): function test_llm (line 35) | def test_llm(): function test_embedding_model (line 58) | def test_embedding_model(): function test_reranker_model (line 70) | def test_reranker_model(): FILE: core/tests/storage/doc_store/test_tidb_doc_store.py function doc_store (line 11) | def doc_store(): function doc_store_with_auto_embed (line 17) | def doc_store_with_auto_embed(): function test_crud (line 27) | def test_crud(doc_store): function test_crud_with_auto_embed (line 103) | def test_crud_with_auto_embed(doc_store_with_auto_embed): FILE: core/tests/storage/graph_store/test_tidb_graph_store.py function graph_store (line 17) | def graph_store(tidb_client, embedding_model): function test_entity_crud (line 25) | def test_entity_crud(graph_store: TiDBGraphStore): function test_relationship_crud (line 97) | def test_relationship_crud(graph_store: TiDBGraphStore): function test_entity_degree (line 163) | def test_entity_degree(graph_store: TiDBGraphStore): FILE: docs/src/app/[[...mdxPath]]/page.jsx function generateMetadata (line 6) | async function generateMetadata(props) { function Page (line 14) | async function Page(props) { FILE: docs/src/app/_app.tsx function App (line 4) | function App({ Component, pageProps }: AppProps) { FILE: docs/src/app/layout.jsx function RootLayout (line 23) | async function RootLayout({ children }) { FILE: e2e/tests/api.spec.ts function expectGetOkStep (line 27) | async function expectGetOkStep (url: string) { function expectOk (line 89) | async function expectOk (response: APIResponse | Promise) { FILE: e2e/tests/bootstrap.ts function clickTab (line 73) | async function clickTab (text: string, url: string) { FILE: e2e/tests/chat-engine.spec.ts function checkChatEngineAvailability (line 198) | async function checkChatEngineAvailability (page: Page, name: string) { function getChatEngine (line 221) | async function getChatEngine (page: Page, id: number) { function waitUpdate (line 227) | async function waitUpdate (page: Page, locator: Locator) { FILE: e2e/tests/evaluation.spec.ts function createEvaluationDataset (line 71) | async function createEvaluationDataset (page: Page, name: string, file?:... FILE: e2e/tests/knowledge-base.spec.ts function createFeaturedKnowledgeBase (line 118) | async function createFeaturedKnowledgeBase (page: Page, name: string, en... function configureSimpleDataSource (line 149) | async function configureSimpleDataSource (page: Page, kbId: number, enab... function pollKbOverviewUntill (line 174) | async function pollKbOverviewUntill (page: Page, kbId: number, isOk: (js... FILE: e2e/tests/site-settings.spec.ts function submitAndWaitSavedByLabel (line 36) | async function submitAndWaitSavedByLabel (label: string) { FILE: e2e/tests/widget.spec.ts function testWidgetChat (line 54) | async function testWidgetChat (page: Page, dialog: Locator) { FILE: e2e/utils/chat.ts constant QUESTION (line 3) | const QUESTION = 'What is the content of sample.pdf?'; function getChatRequestPromise (line 5) | function getChatRequestPromise (page: Page, baseURL: string) { function testNewChat (line 9) | async function testNewChat (page: Page, chatRequest: Request, validatePa... FILE: e2e/utils/forms.ts function selectOption (line 3) | async function selectOption (page: Page, name: string, value: string | R... function turnSwitch (line 14) | async function turnSwitch (page: Page, name: string, on: boolean = true) { function checkCheckbox (line 33) | async function checkCheckbox (page: Page, name: string, on: boolean = tr... FILE: e2e/utils/login.ts function loginViaApi (line 3) | async function loginViaApi ({ request }: { request: APIRequestContext }) { FILE: frontend/app/.storybook/main.ts method webpack (line 19) | webpack (config) { FILE: frontend/app/jest.polyfills.js class ResizeObserver (line 35) | class ResizeObserver { method observe (line 36) | observe() { method disconnect (line 39) | disconnect() { FILE: frontend/app/next.config.ts method webpack (line 18) | webpack (config, options) { FILE: frontend/app/src/api/api-keys.ts type ApiKey (line 5) | interface ApiKey { type CreateApiKey (line 15) | interface CreateApiKey { type CreateApiKeyResponse (line 19) | interface CreateApiKeyResponse { function listApiKeys (line 37) | async function listApiKeys ({ page = 1, size = 10 }: PageParams = {}): P... function createApiKey (line 44) | async function createApiKey (create: CreateApiKey): Promise { FILE: frontend/app/src/api/auth.ts type LoginParams (line 3) | interface LoginParams { function login (line 8) | async function login (params: LoginParams) { function logout (line 21) | async function logout () { FILE: frontend/app/src/api/chat-engines.ts type ChatEngine (line 5) | interface ChatEngine { type CreateChatEngineParams (line 19) | interface CreateChatEngineParams { type ChatEngineOptions (line 27) | interface ChatEngineOptions { type ChatEngineKnowledgeBaseOptions (line 41) | interface ChatEngineKnowledgeBaseOptions { type ChatEngineKnowledgeGraphOptions (line 49) | interface ChatEngineKnowledgeGraphOptions { type ChatEngineLLMOptions (line 57) | type ChatEngineLLMOptions = { type LinkedKnowledgeBaseOptions (line 70) | interface LinkedKnowledgeBaseOptions { function getDefaultChatEngineOptions (line 141) | async function getDefaultChatEngineOptions (): Promise { function listChatEngines (line 148) | async function listChatEngines ({ page = 1, size = 10 }: PageParams = {}... function getChatEngine (line 155) | async function getChatEngine (id: number): Promise { function updateChatEngine (line 162) | async function updateChatEngine (id: number, partial: Partial { function listPublicChatEngines (line 196) | async function listPublicChatEngines ({ page = 1, size = 10 }: PageParam... function getPublicChatEngine (line 203) | async function getPublicChatEngine (id: number): Promise { FILE: frontend/app/src/api/chats.ts type ClientEngineOptions (line 9) | type ClientEngineOptions = Omit { function deleteChat (line 124) | async function deleteChat (id: string): Promise { function postFeedback (line 131) | async function postFeedback (chatMessageId: number, feedback: FeedbackPa... function getChatMessageSubgraph (line 143) | async function getChatMessageSubgraph (chatMessageId: number): Promise { function createDatasource (line 138) | async function createDatasource (kbId: number, params: CreateDatasourceP... function updateDatasource (line 149) | async function updateDatasource (kbId: number, id: number, params: { nam... function uploadFiles (line 160) | async function uploadFiles (files: File[]) { FILE: frontend/app/src/api/documents.ts type Document (line 17) | interface Document { type ListDocumentsTableFilters (line 76) | type ListDocumentsTableFilters = z.infer { function listEvaluationDatasetItems (line 214) | async function listEvaluationDatasetItems (datasetId: number, { ...param... function createEvaluationDatasetItem (line 221) | async function createEvaluationDatasetItem (datasetId: number, params: C... function updateEvaluationDatasetItem (line 236) | async function updateEvaluationDatasetItem (datasetId: number, id: numbe... function getEvaluationDatasetItem (line 251) | async function getEvaluationDatasetItem (datasetId: number, id: number) { function deleteEvaluationDatasetItem (line 261) | async function deleteEvaluationDatasetItem (datasetId: number, id: numbe... function createEvaluationTask (line 273) | async function createEvaluationTask (params: CreateEvaluationTaskParams)... function listEvaluationTasks (line 285) | async function listEvaluationTasks ({ ...params }: PageParams & { keywor... function getEvaluationTaskWithSummary (line 292) | async function getEvaluationTaskWithSummary (id: number): Promise { function listEvaluationTaskItems (line 307) | async function listEvaluationTaskItems (id: number, params: PageParams &... FILE: frontend/app/src/api/feedbacks.ts type FeedbackType (line 5) | const enum FeedbackType { type Feedback (line 10) | interface Feedback { function listFeedbacks (line 42) | async function listFeedbacks ({ page = 1, size = 10 }: PageParams = {}):... FILE: frontend/app/src/api/graph.ts type KnowledgeGraph (line 6) | interface KnowledgeGraph { type KnowledgeGraphEntityType (line 11) | const enum KnowledgeGraphEntityType { type KnowledgeGraphEntity (line 16) | interface KnowledgeGraphEntity { type KnowledgeGraphRelationship (line 29) | interface KnowledgeGraphRelationship { type UpdateEntityParams (line 68) | interface UpdateEntityParams { type CreateSynopsisEntityParams (line 74) | interface CreateSynopsisEntityParams { type UpdateRelationshipParams (line 82) | interface UpdateRelationshipParams { type GraphSearchParams (line 88) | interface GraphSearchParams { type KBRetrieveKnowledgeGraphParams (line 95) | interface KBRetrieveKnowledgeGraphParams { type KnowledgeGraphRetrievalConfig (line 103) | interface KnowledgeGraphRetrievalConfig { function search (line 113) | async function search (kbId: number, params: GraphSearchParams) { function searchEntity (line 124) | async function searchEntity (kbId: number, query: string, top_k: number ... function getEntity (line 133) | async function getEntity (kbId: number, id: number) { function updateEntity (line 142) | async function updateEntity (kbId: number, id: number, params: UpdateEnt... function createSynopsisEntity (line 153) | async function createSynopsisEntity (kbId: number, params: CreateSynopsi... function getEntitySubgraph (line 164) | async function getEntitySubgraph (kbId: number, id: number) { function getEntireKnowledgeGraph (line 173) | async function getEntireKnowledgeGraph (kbId: number, params: KBRetrieve... function streamEntireKnowledgeGraph (line 185) | async function streamEntireKnowledgeGraph (kbId: number): Promise { function getKnowledgeBaseDocumentChunks (line 215) | async function getKnowledgeBaseDocumentChunks (id: number, documentId: n... function getKnowledgeBaseDocument (line 222) | async function getKnowledgeBaseDocument (id: number, documentId: number) { function getKnowledgeBaseLinkedChatEngines (line 229) | async function getKnowledgeBaseLinkedChatEngines (id: number) { function deleteKnowledgeBaseDocument (line 236) | async function deleteKnowledgeBaseDocument (id: number, documentId: numb... function rebuildKBDocumentIndex (line 244) | async function rebuildKBDocumentIndex (kb_id: number, doc_id: number) { function createKnowledgeBase (line 252) | async function createKnowledgeBase (params: CreateKnowledgeBaseParams) { function updateKnowledgeBase (line 263) | async function updateKnowledgeBase (id: number, params: UpdateKnowledgeB... function getKnowledgeGraphIndexProgress (line 274) | async function getKnowledgeGraphIndexProgress (id: number): Promise { function createLlm (line 81) | async function createLlm (create: CreateLLM) { function updateLlm (line 92) | async function updateLlm (id: number, update: UpdateLLM) { function deleteLlm (line 103) | async function deleteLlm (id: number) { function testLlm (line 110) | async function testLlm (createLLM: CreateLLM) { FILE: frontend/app/src/api/providers.ts type ProviderOption (line 3) | interface ProviderOption { FILE: frontend/app/src/api/rag.ts type IndexStatus (line 11) | type IndexStatus = typeof indexStatuses[number]; type IndexProgress (line 13) | type IndexProgress = Partial> type IndexTotalStats (line 15) | type IndexTotalStats = { FILE: frontend/app/src/api/rerankers.ts type Reranker (line 6) | interface Reranker { type RerankerOption (line 18) | interface RerankerOption extends ProviderOption { type CreateReranker (line 24) | interface CreateReranker { type UpdateReranker (line 34) | interface UpdateReranker { function listRerankerOptions (line 59) | async function listRerankerOptions () { function listRerankers (line 68) | async function listRerankers ({ page = 1, size = 10 }: PageParams = {}):... function getReranker (line 75) | async function getReranker (id: number): Promise { function createReranker (line 81) | async function createReranker (create: CreateReranker) { function updateReranker (line 92) | async function updateReranker (id: number, update: UpdateReranker) { function deleteReranker (line 103) | async function deleteReranker (id: number) { function testReranker (line 110) | async function testReranker (createReranker: CreateReranker) { FILE: frontend/app/src/api/site-settings.ts type SettingItemBase (line 4) | interface SettingItemBase { type IntSettingItem (line 14) | type IntSettingItem = SettingItemBase<'int', number> type FloatSettingItem (line 15) | type FloatSettingItem = SettingItemBase<'float', number> type BoolSettingItem (line 16) | type BoolSettingItem = SettingItemBase<'bool', boolean> type StringSettingItem (line 17) | type StringSettingItem = SettingItemBase<'str', string> type ListSettingItem (line 18) | type ListSettingItem = SettingItemBase<'list', any[]> type DictSettingItem (line 19) | type DictSettingItem = SettingItemBase<'dict', object> type SettingItem (line 21) | type SettingItem = type PublicWebsiteSettings (line 29) | interface PublicWebsiteSettings { type AllSettings (line 89) | type AllSettings = Record function getAllSiteSettings (line 91) | async function getAllSiteSettings (): Promise { function updateSiteSetting (line 99) | async function updateSiteSetting (name: string, value: any) { function getPublicSiteSettings (line 110) | async function getPublicSiteSettings (): Promise { FILE: frontend/app/src/api/stats.ts type TrendBaseItem (line 6) | interface TrendBaseItem { type ChatUserTrendItem (line 10) | interface ChatUserTrendItem extends TrendBaseItem { type ChatOriginTrendItem (line 15) | type ChatOriginTrendItem = TrendBaseItem & Omit<{ type TrendResponse (line 19) | interface TrendResponse { function trendResponse (line 45) | function trendResponse (item: ZodType): ZodType { function isBootstrapStatusPassed (line 58) | function isBootstrapStatusPassed (bootstrapStatus: BootstrapStatus): boo... FILE: frontend/app/src/api/users.ts type MeInfo (line 4) | interface MeInfo { function getMe (line 20) | async function getMe (): Promise { FILE: frontend/app/src/app/(experimental)/experimental-features/route.ts function GET (line 4) | function GET () { FILE: frontend/app/src/app/(main)/(.)auth/login/loading.tsx function Loading (line 5) | function Loading () { FILE: frontend/app/src/app/(main)/(.)auth/login/page.client.tsx function SigninDialog (line 7) | function SigninDialog ({ callbackUrl }: { callbackUrl?: string }) { FILE: frontend/app/src/app/(main)/(.)auth/login/page.tsx function Page (line 4) | async function Page () { FILE: frontend/app/src/app/(main)/(admin)/chat-engines/[id]/page.tsx function ChatEnginePage (line 7) | async function ChatEnginePage(props: { params: Promise<{ id: string }> }) { FILE: frontend/app/src/app/(main)/(admin)/chat-engines/new/page.tsx function NewChatEnginePage (line 5) | async function NewChatEnginePage () { FILE: frontend/app/src/app/(main)/(admin)/chat-engines/page.tsx function ChatEnginesPage (line 5) | function ChatEnginesPage () { FILE: frontend/app/src/app/(main)/(admin)/embedding-models/[id]/page.tsx function Page (line 5) | async function Page (props: { params: Promise<{ id: string }> }) { FILE: frontend/app/src/app/(main)/(admin)/embedding-models/create/page.tsx function Page (line 8) | function Page () { FILE: frontend/app/src/app/(main)/(admin)/embedding-models/page.tsx function EmbeddingModelPage (line 8) | function EmbeddingModelPage () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/[id]/items/[itemId]/page.tsx function Page (line 9) | function Page (props: { params: Promise<{ id: string, itemId: string }> ... FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/[id]/items/new/page.tsx function CreateEvaluationDatasetItemPage (line 11) | function CreateEvaluationDatasetItemPage (props: { params: Promise<{ id:... FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/[id]/not-found.tsx function NotFound (line 4) | function NotFound () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/[id]/page.tsx function EvaluationDatasetPage (line 12) | function EvaluationDatasetPage (props: { params: Promise<{ id: string }>... FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/create/page.tsx function EvaluationTaskPage (line 9) | function EvaluationTaskPage () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/datasets/page.tsx function EvaluationDatasetsPage (line 5) | function EvaluationDatasetsPage () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/page.tsx function EvaluationsPage (line 3) | function EvaluationsPage () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/tasks/[id]/not-found.tsx function NotFound (line 4) | function NotFound () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/tasks/[id]/page.tsx function EvaluationTaskPage (line 10) | function EvaluationTaskPage (props: { params: Promise<{ id: string }> }) { FILE: frontend/app/src/app/(main)/(admin)/evaluation/tasks/create/page.tsx function EvaluationTaskPage (line 9) | function EvaluationTaskPage () { FILE: frontend/app/src/app/(main)/(admin)/evaluation/tasks/page.tsx function EvaluationTasksPage (line 5) | function EvaluationTasksPage () { FILE: frontend/app/src/app/(main)/(admin)/feedbacks/page.tsx function ChatEnginesPage (line 4) | function ChatEnginesPage () { FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(special)/data-sources/new/page.tsx function NewKnowledgeBaseDataSourcePage (line 12) | function NewKnowledgeBaseDataSourcePage (props: { params: Promise<{ id: ... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(special)/documents/[documentId]/chunks/page.tsx function DocumentChunksPage (line 14) | function DocumentChunksPage(props: { params: Promise<{ id: string, docum... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/data-sources/page.tsx function KnowledgeBaseDataSourcesPage (line 11) | function KnowledgeBaseDataSourcesPage(props: { params: Promise<{ id: str... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/index-progress/page.tsx function KnowledgeBaseIndexProgressPage (line 3) | async function KnowledgeBaseIndexProgressPage(props: { params: Promise<{... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/knowledge-graph-explorer/create-synopsis-entity/page.tsx function CreateSynopsisEntityPage (line 9) | function CreateSynopsisEntityPage(props: { params: Promise<{ id: string ... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/knowledge-graph-explorer/page.tsx function KnowledgeGraphExplorerPage (line 3) | async function KnowledgeGraphExplorerPage(props: { params: Promise<{ id:... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/layout.tsx function KnowledgeBaseLayout (line 14) | function KnowledgeBaseLayout(props: { params: Promise<{ id: string }>, c... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/page.tsx function KnowledgeBasePage (line 3) | async function KnowledgeBasePage(props: { params: Promise<{ id: string }... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/settings/page.tsx function KnowledgeBaseSettingsPage (line 4) | async function KnowledgeBaseSettingsPage(props: { params: Promise<{ id: ... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/(tabs)/tabs.tsx function KnowledgeBaseTabs (line 6) | function KnowledgeBaseTabs ({ knowledgeBaseId }: { knowledgeBaseId: numb... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/[id]/context.tsx function KBProvider (line 8) | function KBProvider ({ children, value }: { children: ReactNode, value: ... FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/new/page.tsx function NewKnowledgeBasePage (line 6) | function NewKnowledgeBasePage () { FILE: frontend/app/src/app/(main)/(admin)/knowledge-bases/page.tsx function KnowledgeBasesPage (line 10) | function KnowledgeBasesPage () { FILE: frontend/app/src/app/(main)/(admin)/layout.tsx function Layout (line 5) | async function Layout ({ children }: { children: ReactNode }) { FILE: frontend/app/src/app/(main)/(admin)/llms/[id]/page.tsx function Page (line 6) | async function Page (props: { params: Promise<{ id: string }> }) { FILE: frontend/app/src/app/(main)/(admin)/llms/create/page.tsx function Page (line 8) | function Page () { FILE: frontend/app/src/app/(main)/(admin)/llms/page.tsx function Page (line 6) | function Page () { FILE: frontend/app/src/app/(main)/(admin)/reranker-models/[id]/page.tsx function Page (line 6) | async function Page (props: { params: Promise<{ id: string }> }) { FILE: frontend/app/src/app/(main)/(admin)/reranker-models/create/page.tsx function Page (line 8) | function Page () { FILE: frontend/app/src/app/(main)/(admin)/reranker-models/page.tsx function Page (line 6) | function Page () { FILE: frontend/app/src/app/(main)/(admin)/site-settings/custom_js/page.tsx function CustomJsSettingsPage (line 5) | async function CustomJsSettingsPage () { FILE: frontend/app/src/app/(main)/(admin)/site-settings/integrations/page.tsx function LangfuseSettingsPage (line 4) | async function LangfuseSettingsPage () { FILE: frontend/app/src/app/(main)/(admin)/site-settings/layout.tsx function SiteSettingsLayout (line 7) | function SiteSettingsLayout ({ children }: { children: ReactNode }) { FILE: frontend/app/src/app/(main)/(admin)/site-settings/page.tsx function SiteSettingsPage (line 4) | async function SiteSettingsPage () { FILE: frontend/app/src/app/(main)/(admin)/stats/trending/page.tsx function Page (line 12) | function Page () { FILE: frontend/app/src/app/(main)/(user)/api-keys/page.tsx function ChatEnginesPage (line 40) | function ChatEnginesPage () { function DeleteButton (line 104) | function DeleteButton ({ apiKey }: { apiKey: ApiKey }) { FILE: frontend/app/src/app/(main)/(user)/c/page.tsx function ConversationsListPage (line 5) | async function ConversationsListPage () { FILE: frontend/app/src/app/(main)/(user)/layout.tsx function Layout (line 5) | async function Layout ({ children }: { children: ReactNode }) { FILE: frontend/app/src/app/(main)/c/[id]/page.tsx function ChatDetailPage (line 26) | async function ChatDetailPage(props: { params: Promise<{ id: string }> }) { function generateMetadata (line 88) | async function generateMetadata(props: { params: Promise<{ id: string }>... FILE: frontend/app/src/app/(main)/layout.tsx function Layout (line 10) | function Layout ({ children }: { FILE: frontend/app/src/app/(main)/nav.tsx function SiteSidebar (line 26) | function SiteSidebar ({ setting }: { setting: PublicWebsiteSettings }) { function NavContent (line 42) | function NavContent () { function NavFooter (line 130) | function NavFooter () { function NavWarningDetails (line 174) | function NavWarningDetails ({ children }: { children?: ReactNode }) { function CountSpan (line 192) | function CountSpan ({ children }: { children?: ReactNode }) { function KnowledgeBaseNavDetails (line 196) | function KnowledgeBaseNavDetails () { function ChatEnginesNavDetails (line 206) | function ChatEnginesNavDetails () { FILE: frontend/app/src/app/(main)/page.tsx function Page (line 15) | function Page () { function isHighlightedLinkText (line 77) | function isHighlightedLinkText (text: string) { function trimHighlightedLinkText (line 81) | function trimHighlightedLinkText (text: string) { FILE: frontend/app/src/app/RootProviders.tsx type RootProvidersProps (line 18) | interface RootProvidersProps { function RootProviders (line 26) | function RootProviders ({ me, settings, bootstrapStatus, experimentalFea... FILE: frontend/app/src/app/api/[[...fallback_placeholder]]/route.ts type RequestInit (line 5) | interface RequestInit { function handler (line 10) | function handler (request: NextRequest) { function originalUrl (line 42) | function originalUrl (request: NextRequest) { FILE: frontend/app/src/app/auth/login/page.tsx function Page (line 4) | async function Page() { FILE: frontend/app/src/app/layout.tsx function generateMetadata (line 19) | async function generateMetadata (): Promise { function RootLayout (line 28) | async function RootLayout ({ FILE: frontend/app/src/components/admin-page-heading.tsx type BreadcrumbItem (line 10) | interface BreadcrumbItem { type TableHeadingProps (line 20) | interface TableHeadingProps { function AdminPageHeading (line 24) | function AdminPageHeading ({ breadcrumbs }: TableHeadingProps) { FILE: frontend/app/src/components/admin-page-layout.tsx function AdminPageLayout (line 3) | function AdminPageLayout ({ children }: { children: ReactNode }) { FILE: frontend/app/src/components/api-keys/CreateApiKeyForm.tsx type CreateApiKeyFormProps (line 10) | interface CreateApiKeyFormProps { function CreateApiKeyForm (line 19) | function CreateApiKeyForm ({ onCreated }: CreateApiKeyFormProps) { FILE: frontend/app/src/components/auth/AuthProvider.tsx type AuthContextValues (line 4) | interface AuthContextValues { function AuthProvider (line 13) | function AuthProvider ({ children, ...context }: AuthContextValues & { c... function useAuth (line 21) | function useAuth () { FILE: frontend/app/src/components/auto-scroll/auto-scroll.stories.tsx type Story (line 20) | type Story = StoryObj function AutoScrollByObservingChildren (line 82) | function AutoScrollByObservingChildren ({ target }: { target: RefObject<... FILE: frontend/app/src/components/auto-scroll/auto-scroll.tsx type AutoScrollProps (line 6) | interface AutoScrollProps { function AutoScroll (line 16) | function AutoScroll ({ target, edgePixels = 0, children }: AutoScrollPro... FILE: frontend/app/src/components/auto-scroll/context.ts type ScrollInfo (line 5) | type ScrollInfo = { type ScrollEdge (line 13) | type ScrollEdge = 'top' | 'left' | 'right' | 'bottom'; type ScrollHandler (line 14) | type ScrollHandler = (info: ScrollInfo) => void; type AutoScrollContextValues (line 16) | interface AutoScrollContextValues { method registerVoter (line 31) | registerVoter (id: string, defaultScroll: boolean) {} method unregisterVoter (line 32) | unregisterVoter (id: string) {} method voteAutoScroll (line 33) | voteAutoScroll (id: string) {} method cancelVoteAutoScroll (line 34) | cancelVoteAutoScroll (id: string) {} method useScroll (line 35) | useScroll () {} method requestScroll (line 36) | requestScroll () {} FILE: frontend/app/src/components/auto-scroll/manual-scroll-voter.tsx function ManualScrollVoter (line 10) | function ManualScrollVoter () { FILE: frontend/app/src/components/auto-scroll/use-auto-scroll-voter.ts function useAutoScrollVoter (line 6) | function useAutoScrollVoter (defaultScroll: boolean) { FILE: frontend/app/src/components/auto-scroll/use-request-scroll.ts function useRequestScroll (line 6) | function useRequestScroll () { FILE: frontend/app/src/components/branding.tsx function Branding (line 4) | function Branding ({ setting }: { setting: PublicWebsiteSettings }) { FILE: frontend/app/src/components/cells/actions.tsx type CellAction (line 12) | interface CellAction { type ActionUIContext (line 22) | interface ActionUIContext { function actions (line 30) | function actions (items: (row: Row) => CellAction[]) { function Action (line 57) | function Action ({ item, open, setOpen }: { item: CellAction, open: bool... FILE: frontend/app/src/components/cells/boolean.tsx function boolean (line 4) | function boolean (props: CellContext) { FILE: frontend/app/src/components/cells/datetime.tsx function datetime (line 4) | function datetime (props: CellContext) { FILE: frontend/app/src/components/cells/error-message.tsx function errorMessageCell (line 5) | function errorMessageCell (trimLength = 25) { function AutoErrorMessagePopper (line 11) | function AutoErrorMessagePopper ({ trimLength = 25, children }: { trimLe... FILE: frontend/app/src/components/cells/link.tsx type LinkCellProps (line 4) | interface LinkCellProps { function link (line 19) | function link ({ icon, url, text, truncate, truncate_length }: Link... FILE: frontend/app/src/components/cells/percent.tsx type PercentCellConfig (line 7) | interface PercentCellConfig { function getStyle (line 39) | function getStyle (value: number, stops: { FILE: frontend/app/src/components/cells/reference.tsx function DatasourceCell (line 5) | function DatasourceCell ({ id, name }: { id: number, name: string }) { function KnowledgeBaseCell (line 9) | function KnowledgeBaseCell ({ id, name }: { id?: number, name?: string }) { FILE: frontend/app/src/components/charts/IndexProgressChart.stories.tsx type Story (line 33) | type Story = StoryObj method render (line 54) | render ({ ...args }) { FILE: frontend/app/src/components/charts/IndexProgressChart.tsx function IndexProgressChart (line 45) | function IndexProgressChart ({ title, description, label, data }: { titl... type IndexProgressChartPlaceholderProps (line 121) | interface IndexProgressChartPlaceholderProps { function IndexProgressChartPlaceholder (line 127) | function IndexProgressChartPlaceholder ({ title, label, description }: I... FILE: frontend/app/src/components/charts/TotalCard.stories.tsx type Story (line 32) | type Story = StoryObj FILE: frontend/app/src/components/charts/TotalCard.tsx type TotalCardProps (line 8) | interface TotalCardProps { function TotalCard (line 16) | function TotalCard ({ isLoading = false, title, icon, total, children }:... FILE: frontend/app/src/components/charts/TrendsChart.tsx function TrendsChart (line 11) | function TrendsChart ({ FILE: frontend/app/src/components/chat-engine/chat-engines-table.tsx function ChatEnginesTable (line 79) | function ChatEnginesTable () { function NameLink (line 90) | function NameLink ({ chatEngine }: { chatEngine: ChatEngine }) { FILE: frontend/app/src/components/chat-engine/create-chat-engine-form.tsx function CreateChatEngineForm (line 49) | function CreateChatEngineForm ({ defaultChatEngineOptions }: { defaultCh... function SectionTabTrigger (line 224) | function SectionTabTrigger ({ value, required }: { value: string, requir... function Section (line 252) | function Section ({ title, children }: { title: string, children: ReactN... function SubSection (line 262) | function SubSection ({ title, children }: { title: ReactNode, children: ... FILE: frontend/app/src/components/chat-engine/hooks.ts function useAllChatEngines (line 5) | function useAllChatEngines (onlyPublic: boolean = false) { FILE: frontend/app/src/components/chat-engine/kb-list-select.tsx function KBListSelect (line 12) | function KBListSelect ({ ref, disabled, value, onChange, ...props }: For... function KBListSelectForObjectValue (line 109) | function KBListSelectForObjectValue ({ value, onChange, ...props }: Form... FILE: frontend/app/src/components/chat-engine/update-chat-engine-form.tsx function UpdateChatEngineForm (line 20) | function UpdateChatEngineForm ({ chatEngine, defaultChatEngineOptions }:... function optionAccessor (line 232) | function optionAccessor (key: K): Gen... function kgOptionAccessor (line 250) | function kgOptionAccessor (key: K... method get (line 295) | get (data) { method set (line 298) | set () { method get (line 330) | get (data) { method set (line 334) | set (data, value) { method get (line 388) | get (engine) { method set (line 391) | set (engine, value) { function Section (line 405) | function Section ({ title, children }: { title: string, children: ReactN... function SubSection (line 415) | function SubSection ({ title, children }: { title: ReactNode, children: ... FILE: frontend/app/src/components/chat/ask.tsx function Ask (line 6) | function Ask ({ className, loading, disabled, ask, engine, setEngine }: ... FILE: frontend/app/src/components/chat/chat-controller.ts type ChatControllerEventsMap (line 10) | interface ChatControllerEventsMap) { method regenerate (line 201) | async regenerate (messageId: number) { method updateChat (line 205) | updateChat (chat: Chat): void { method upsertMessage (line 219) | upsertMessage (message: ChatMessage): void { method _processPart (line 229) | _processPart (ongoingMessageController: ChatMessageController | StackV... method _processDataPart (line 263) | private _processDataPart (ongoingMessageController: ChatMessageControl... method _processMessageAnnotationPart (line 278) | private _processMessageAnnotationPart (ongoingMessageController: ChatM... method _processTextPart (line 284) | private _processTextPart (ongoingMessageController: ChatMessageControl... method _processErrorPart (line 291) | private _processErrorPart (ongoingMessageController: ChatMessageContro... method _processToolCallPart (line 296) | private _processToolCallPart (ongoingMessageController: ChatMessageCon... method _processToolResultPart (line 301) | private _processToolResultPart (ongoingMessageController: ChatMessageC... method createMessage (line 306) | private createMessage (message: ChatMessage, initialOngoingState?: tru... method createLegacyMessage (line 318) | private createLegacyMessage (message: ChatMessage, initialOngoingState... method createStackVMMessage (line 325) | private createStackVMMessage (message: ChatMessage, initialOngoingStat... function assertNonNull (line 333) | function assertNonNull (value: T, message: string, ...args: any): ass... FILE: frontend/app/src/components/chat/chat-hooks.tsx type ChatsProviderValues (line 11) | interface ChatsProviderValues { method newChat (line 23) | newChat (): ChatController { method destroyChat (line 26) | destroyChat () { function ChatsProvider (line 33) | function ChatsProvider ({ onChatCreated, children }: { children: ReactNo... function ChatControllerProvider (line 71) | function ChatControllerProvider ({ controller, children }: { controller:... function useChats (line 80) | function useChats () { type ChatMessageGroup (line 84) | interface ChatMessageGroup { function useChatController (line 92) | function useChatController ( function useChatInfo (line 122) | function useChatInfo (controller: ChatController) { function useChatPostState (line 143) | function useChatPostState (controller: ChatController | undefined) { function useChatMessageControllers (line 173) | function useChatMessageControllers (controller: ChatController) { function useChatMessageGroups (line 195) | function useChatMessageGroups (controllers: ChatMessageController[]) { function collectMessageGroups (line 205) | function collectMessageGroups (messageControllers: ChatMessageController... function useCurrentChatController (line 246) | function useCurrentChatController () { function useChatMessageField (line 258) | function useChatMessageField (controller: ChatMessageController | undefi... function useChatMessageStreamState (line 289) | function useChatMessageStreamState (con... function useChatMessageStreamHistoryStates (line 317) | function useChatMessageStreamHistoryStates { type OngoingStateHistoryItem (line 13) | interface OngoingStateHistoryItem { type ChatMessageControllerEventsMap (line 18) | interface ChatMessageControllerEventsMap { method constructor (line 39) | constructor (message: ChatMessage, ongoing: OngoingState | true |... method content (line 53) | get content () { method update (line 57) | update (message: ChatMessage) { method applyStreamAnnotation (line 62) | applyStreamAnnotation (annotation: Annotation) { method applyDelta (line 103) | applyDelta (delta: string) { method applyError (line 115) | applyError (error: string) { method applyToolCall (line 132) | applyToolCall ({ toolCallId, toolName, args }: { toolCallId: string, too... method applyToolResult (line 136) | applyToolResult ({ toolCallId, result }: { toolCallId: string, result: a... method finish (line 140) | finish () { method message (line 146) | get message (): ChatMessage { method ongoing (line 150) | get ongoing () { method ongoingHistory (line 154) | get ongoingHistory () { type ChatMessageController (line 167) | type ChatMessageController = LegacyChatMessageController | StackVMChatMe... type ChatMessageControllerAnnotationState (line 168) | type ChatMessageControllerAnnotationState { method createUnknownOngoingState (line 282) | createUnknownOngoingState (): OngoingState { method _polishMessage (line 309) | _polishMessage (message: ChatMessage): ChatMessage { FILE: frontend/app/src/components/chat/chat-new-dialog.tsx function ChatNewDialog (line 10) | function ChatNewDialog () { FILE: frontend/app/src/components/chat/chat-stream-state.ts type BaseState (line 14) | const enum BaseState { type AppChatStreamState (line 19) | const enum AppChatStreamState { type StackVMState (line 33) | type StackVMState = { type StackVMToolCall (line 41) | type StackVMToolCall = { toolCallId: string, toolName: string, args: any... type BaseAnnotation (line 43) | interface BaseAnnotation { type TraceAnnotation (line 48) | interface TraceAnnotation extends BaseAnnotation { type ChatInitialData (line 69) | type ChatInitialData = { function fixChatInitialData (line 76) | function fixChatInitialData (data: any) { FILE: frontend/app/src/components/chat/chats-history.tsx function ChatsHistory (line 13) | function ChatsHistory () { FILE: frontend/app/src/components/chat/chats-table.tsx function ChatsTable (line 12) | function ChatsTable () { FILE: frontend/app/src/components/chat/conversation-message-groups.tsx function ConversationMessageGroups (line 22) | function ConversationMessageGroups ({ groups }: { groups: ChatMessageGro... function ConversationMessageGroup (line 72) | function ConversationMessageGroup ({ group, isLastGroup }: { group: Chat... FILE: frontend/app/src/components/chat/conversation.tsx type ConversationProps (line 13) | interface ConversationProps { function Conversation (line 28) | function Conversation ({ open, chat, chatId, history, placeholder, preve... FILE: frontend/app/src/components/chat/debug-info.tsx type DebugInfoProps (line 10) | interface DebugInfoProps { function DebugInfo (line 14) | function DebugInfo ({ group }: DebugInfoProps) { FILE: frontend/app/src/components/chat/knowledge-graph-debug-info.tsx function KnowledgeGraphDebugInfo (line 13) | function KnowledgeGraphDebugInfo ({ group }: { group: ChatMessageGroup }) { function couldFetchKnowledgeGraphDebugInfo (line 94) | function couldFetchKnowledgeGraphDebugInfo (state: OngoingState void) { type UseAskReturns (line 57) | type UseAskReturns = ReturnType; FILE: frontend/app/src/components/chat/use-message-feedback.ts type UseMessageFeedbackReturns (line 6) | interface UseMessageFeedbackReturns { function useMessageFeedback (line 13) | function useMessageFeedback (messageId: number | undefined, enabled: boo... FILE: frontend/app/src/components/chat/utils.ts function parseSource (line 13) | function parseSource (uri?: string) { function parseHref (line 24) | function parseHref (source: ChatMessageSource): { href: string, download... function isNotFinished (line 34) | function isNotFinished (ongoing: OngoingState | undefined) { FILE: frontend/app/src/components/config-viewer.tsx function ConfigViewer (line 10) | function ConfigViewer ({ value: propValue }: { value: any }) { FILE: frontend/app/src/components/copy-button.tsx type CopyButtonProps (line 9) | interface CopyButtonProps extends Omit { function CopyButton (line 14) | function CopyButton ({ text, className, onClick, autoCopy, ...props }: C... FILE: frontend/app/src/components/dangerous-action-button.tsx type DangerousActionButtonProps (line 9) | interface DangerousActionButtonProps extends ButtonProps { FILE: frontend/app/src/components/data-table-heading.tsx function DataTableHeading (line 3) | function DataTableHeading ({ children }: { children: ReactNode }) { FILE: frontend/app/src/components/data-table-remote.tsx type ColumnMeta (line 20) | interface ColumnMeta { type PageApiOptions (line 25) | interface PageApiOptions { type DataTableRemoteProps (line 29) | interface DataTableRemoteProps { function DataTableRemote (line 50) | function DataTableRemote ({ function getSortingSearchString (line 235) | function getSortingSearchString (sorting: SortingState) { function TablePagination (line 241) | function TablePagination ({ className, limit = 4, loading, table }: { cl... function steps (line 318) | function steps (from: number, to: number) { function getColSpan (line 330) | function getColSpan (columnDef: ColumnDef... FILE: frontend/app/src/components/data-table.tsx type DataTableClassNames (line 10) | interface DataTableClassNames { type DataTableProps (line 18) | interface DataTableProps { function DataTable (line 29) | function DataTable ({ FILE: frontend/app/src/components/datasource/create-datasource-form.tsx function CreateDatasourceForm (line 26) | function CreateDatasourceForm ({ knowledgeBaseId, transitioning, onCreat... function DataSourceTypeField (line 65) | function DataSourceTypeField () { function DataSourceTypeSpecFields (line 102) | function DataSourceTypeSpecFields () { type CreateDatasourceFormParams (line 130) | type CreateDatasourceFormParams = z.infer; function switchDatasource (line 149) | function switchDatasource (data: CreateDatasourceFormParams, type: Creat... function preCreate (line 176) | async function preCreate (ds: CreateDatasourceFormParams): Promise, error: unknown) { FILE: frontend/app/src/components/form/utils.ts function onSubmitHelper (line 4) | function onSubmitHelper ( function applyFormError (line 44) | function applyFormError { class PlaceholderContentWidget (line 125) | class PlaceholderContentWidget implements monaco.editor.IContentWidget { method constructor (line 130) | constructor ( method onDidChangeModelContent (line 139) | private onDidChangeModelContent (): void { method getId (line 147) | getId (): string { method getDomNode (line 151) | getDomNode (): HTMLElement { method getPosition (line 164) | getPosition (): monaco.editor.IContentWidgetPosition | null { FILE: frontend/app/src/components/form/widgets/FileInput.tsx type FileInputProps (line 6) | interface FileInputProps extends FormControlWidgetProps { FILE: frontend/app/src/components/form/widgets/FilesInput.tsx type FilesInputProps (line 11) | interface FilesInputProps extends FormControlWidgetProps { FILE: frontend/app/src/components/form/widgets/PromptInput.tsx type PromptInputProps (line 7) | interface PromptInputProps extends FormControlWidgetProps { FILE: frontend/app/src/components/graph/GraphCreateEntity.tsx function GraphCreateEntity (line 26) | function GraphCreateEntity ({ className, knowledgeBaseId, onCreated }: {... function CreateEntityForm (line 53) | function CreateEntityForm ({ className, entities, onSubmit, onClearSelec... FILE: frontend/app/src/components/graph/GraphEditor.tsx function GraphEditor (line 22) | function GraphEditor ({ knowledgeBaseId }: { knowledgeBaseId: number }) { function SubgraphSelector (line 76) | function SubgraphSelector ({ knowledgeBaseId, query, onQueryChange }: { ... function Editor (line 130) | function Editor ({ knowledgeBaseId, network, target, onTargetChange, onE... function getFetchInfo (line 144) | function getFetchInfo (kbId: number, query: string | null): [string | fa... function parseQuery (line 175) | function parseQuery (query: string | null) { FILE: frontend/app/src/components/graph/action.ts type ActionStatus (line 3) | type ActionStatus = { function useAction (line 25) | function useAction (action: () => Promise) { FILE: frontend/app/src/components/graph/components/EditingButton.tsx type EditingButtonProps (line 4) | interface EditingButtonProps { function EditingButton (line 14) | function EditingButton ({ onEnterSubgraph, subGraphTitle = 'Subgraph', e... FILE: frontend/app/src/components/graph/components/EntitiesTable.tsx type RemoteEntity (line 14) | interface RemoteEntity extends Partial> { function EntitiesTable (line 20) | function EntitiesTable ({ className, isLoading, table }: { className?: s... FILE: frontend/app/src/components/graph/components/InputField.tsx type InputFieldProps (line 3) | interface InputFieldProps extends Omit { class CanvasNetworkRenderer (line 28) | class CanvasNetworkRenderer) { method updateViewportBounds (line 117) | private updateViewportBounds() { method isNodeInViewport (line 139) | private isNodeInViewport(node: any): boolean { method isLinkInViewport (line 148) | private isLinkInViewport(link: any): boolean { method mount (line 164) | mount(container: HTMLElement) { method unmount (line 249) | unmount() { method drawNodeWithLabel (line 281) | private drawNodeWithLabel(node: any, ctx: CanvasRenderingContext2D, gl... method drawLink (line 319) | private drawLink(link: any, ctx: CanvasRenderingContext2D) { method drawArrow (line 344) | private drawArrow( method onNodeClick (line 376) | private onNodeClick(node: any, event: MouseEvent) { method onLinkClick (line 384) | private onLinkClick(link: any, event: MouseEvent) { method onBackgroundClick (line 392) | private onBackgroundClick() { method highlightLink (line 397) | private highlightLink(link: any) { method highlightConnections (line 402) | private highlightConnections(node: any) { method clearHighlight (line 442) | private clearHighlight() { method calculateAndCacheClusters (line 463) | private calculateAndCacheClusters() { method calculateAndCacheAdjacency (line 477) | private calculateAndCacheAdjacency() { method findClusters (line 510) | private findClusters(): Map { method render (line 554) | render() { method focusNode (line 615) | focusNode(id: IdType): void {} method blurNode (line 616) | blurNode(): void {} method focusLink (line 617) | focusLink(id: IdType): void {} method blurLink (line 618) | blurLink(): void {} FILE: frontend/app/src/components/graph/network/Network.ts type IdType (line 3) | type IdType = string | number; type NetworkNode (line 5) | interface NetworkNode { type NetworkLink (line 9) | interface NetworkLink { type BaseNetworkOptions (line 15) | interface BaseNetworkOptions { type ReadonlyNetwork (line 19) | interface ReadonlyNetwork ex... type NetworkEvents (line 41) | interface NetworkEvents { method nodesIn (line 57) | nodesIn (ids: Iterable) { method nodesNotIn (line 61) | nodesNotIn (ids: Iterable) { method nodesWithAttrMatch (line 65) | nodesWithAttrMatch (field: K, test: (value: Node[K... method merge (line 69) | merge (nodeIde... class BaseNetwork (line 113) | class BaseNetwork ex... method constructor (line 125) | constructor ({ method node (line 135) | node (nodeId: IdType) { method addNode (line 139) | addNode (node: Node): void { method removeNode (line 144) | removeNode (nodeId: IdType) { method link (line 172) | link (nodeId: IdType) { method addLink (line 176) | addLink (link: Link): void { method removeLink (line 197) | removeLink (linkId: IdType): void { method nodes (line 210) | nodes () { method links (line 214) | links () { method nodeNeighborhoods (line 218) | nodeNeighborhoods (id: IdType): Set | null { method replaceNodeAttrs (line 228) | replaceNodeAttrs (id: IdType, partial: Omit) { method replaceLinkAttrs (line 241) | replaceLinkAttrs (id: IdType, partial: Omit) { method nodes (line 265) | nodes () { method links (line 285) | links () { method node (line 300) | node (idType: IdType) { method link (line 304) | link (idType: IdType) { method nodeNeighborhoods (line 308) | nodeNeighborhoods (id: IdType): Set | null { class NodesWhitelistView (line 313) | class NodesWhitelistView, private readonly _node... method includesNode (line 318) | includesNode (node: Node): boolean { class NodesBlacklistView (line 323) | class NodesBlacklistView, private readonly _node... method includesNode (line 328) | includesNode (node: Node): boolean { class NodeAttributeFilterView (line 333) | class NodeAttributeFilterView, private _attr: K, priv... method includesNode (line 336) | includesNode (node: Node): boolean { FILE: frontend/app/src/components/graph/network/NetworkRendererOptions.ts type NetworkRendererOptions (line 3) | interface NetworkRendererOptions { FILE: frontend/app/src/components/graph/remote.ts function useRemote (line 3) | function useRemote (initialData: Data, fn: (... FILE: frontend/app/src/components/graph/selectEntities.ts type SearchEntityFilter (line 9) | type SearchEntityFilter = { function shouldFetch (line 14) | function shouldFetch (filter: SearchEntityFilter) { type UseEntitiesRequired (line 18) | type UseEntitiesRequired = Pick, 'selecte... function useEntities (line 20) | function useEntities () { function useGraphEntitiesTable (line 56) | function useGraphEntitiesTable (kbId: number, { rowSelection, setRowSele... function useGraphEntitiesByIdsTable (line 97) | function useGraphEntitiesByIdsTable (kbId: number, { rowSelection, setRo... FILE: frontend/app/src/components/graph/useDirtyEntity.ts function useDirtyEntity (line 7) | function useDirtyEntity (kbId: number, id: any) { FILE: frontend/app/src/components/graph/useDirtyRelationship.ts function useDirtyRelationship (line 7) | function useDirtyRelationship (kbId: number, id: any) { FILE: frontend/app/src/components/graph/useNetwork.ts function useNetwork (line 5) | function useNetwork (span: { output: ServerGraphData } | ServerGraphData... FILE: frontend/app/src/components/graph/utils.ts type Entity (line 3) | type Entity = { type Relationship (line 19) | type Relationship = { type ServerGraphData (line 30) | type ServerGraphData = KnowledgeGraph type GraphData (line 32) | type GraphData = { function handleServerEntity (line 38) | function handleServerEntity (serverEntity: KnowledgeGraphEntity): Entity { function handleServerRelationship (line 46) | function handleServerRelationship ({ source_entity_id, target_entity_id,... FILE: frontend/app/src/components/gtag-provider.tsx type GtagFn (line 5) | interface GtagFn { type GtagProviderValues (line 9) | interface GtagProviderValues { type GtagProviderProps (line 17) | interface GtagProviderProps { function GtagProvider (line 26) | function GtagProvider ({ configured, gtagId, group, gtagFn: propGtagFn, ... function useGtagFn (line 48) | function useGtagFn () { FILE: frontend/app/src/components/html-viewer.tsx function HtmlViewer (line 10) | function HtmlViewer ({ value: propValue }: { value: string }) { FILE: frontend/app/src/components/knowledge-base/create-knowledge-base-form.stories.tsx type Story (line 27) | type Story = StoryObj method onCreated (line 31) | onCreated () {} FILE: frontend/app/src/components/knowledge-base/create-knowledge-base-form.tsx function CreateKnowledgeBaseForm (line 20) | function CreateKnowledgeBaseForm ({}: {}) { FILE: frontend/app/src/components/knowledge-base/document-chunks-table.tsx function DocumentChunksTable (line 7) | function DocumentChunksTable ({ knowledgeBaseId, documentId }: { knowled... FILE: frontend/app/src/components/knowledge-base/empty-state.tsx function KnowledgeBaseEmptyState (line 3) | function KnowledgeBaseEmptyState () { FILE: frontend/app/src/components/knowledge-base/form-index-methods.tsx function IndexMethod (line 52) | function IndexMethod ({ disabled, label, description, checked, onChecked... FILE: frontend/app/src/components/knowledge-base/hooks.ts function useKnowledgeBaseIndexProgress (line 6) | function useKnowledgeBaseIndexProgress (id: number) { function useAllKnowledgeBases (line 11) | function useAllKnowledgeBases (flag = true) { function useKnowledgeBase (line 15) | function useKnowledgeBase (id: number | null | undefined) { function useAllKnowledgeBaseDataSources (line 24) | function useAllKnowledgeBaseDataSources (kbId: number, flag = true) { function mutateKnowledgeBases (line 28) | function mutateKnowledgeBases () { function mutateKnowledgeBaseDataSources (line 37) | function mutateKnowledgeBaseDataSources (kbId: number) { FILE: frontend/app/src/components/knowledge-base/knowledge-base-card.stories.tsx type Story (line 31) | type Story = StoryObj method render (line 48) | render () { FILE: frontend/app/src/components/knowledge-base/knowledge-base-card.tsx function KnowledgeBaseCard (line 17) | function KnowledgeBaseCard ({ knowledgeBase, children }: { knowledgeBase... function KnowledgeBaseCardPlaceholder (line 107) | function KnowledgeBaseCardPlaceholder () { FILE: frontend/app/src/components/knowledge-base/knowledge-base-chunking-config-fields.tsx function KnowledgeBaseChunkingConfigFields (line 13) | function KnowledgeBaseChunkingConfigFields () { function ModeSwitch (line 27) | function ModeSwitch () { function GeneralChunkingConfig (line 68) | function GeneralChunkingConfig () { function AdvancedChunkingConfig (line 88) | function AdvancedChunkingConfig () { function SplitterRuleConfig (line 103) | function SplitterRuleConfig ({ rule }: { rule: keyof KnowledgeBaseChunki... function FormInputLayout (line 166) | function FormInputLayout ({ suffix, children, ...props }: { suffix: stri... function switchMode (line 180) | function switchMode (mode: KnowledgeBaseChunkingConfig['mode']): Knowled... function switchSplitter (line 207) | function switchSplitter (splitter: 'SentenceSplitter' | 'MarkdownSplitte... FILE: frontend/app/src/components/knowledge-base/knowledge-base-index.tsx function KnowledgeBaseIndexProgress (line 21) | function KnowledgeBaseIndexProgress ({ id }: { id: number }) { function KnowledgeBaseIndexErrors (line 63) | function KnowledgeBaseIndexErrors ({ id }: { id: number }) { function KBVectorIndexErrorsTable (line 113) | function KBVectorIndexErrorsTable ({ kb_id }: { kb_id: number }) { function KBKGIndexErrorsTable (line 124) | function KBKGIndexErrorsTable ({ kb_id }: { kb_id: number }) { FILE: frontend/app/src/components/knowledge-base/knowledge-base-settings-form.tsx function KnowledgeBaseSettingsForm (line 19) | function KnowledgeBaseSettingsForm ({ knowledgeBase }: { knowledgeBase: ... method get (line 110) | get (data) { method set (line 113) | set () { method get (line 134) | get (data) { method set (line 137) | set () { method get (line 145) | get (data) { method set (line 148) | set () { FILE: frontend/app/src/components/llm/CreateLLMForm.tsx function CreateLLMForm (line 40) | function CreateLLMForm ({ transitioning, onCreated }: { transitioning?: ... FILE: frontend/app/src/components/llm/LLMsTable.tsx function LLMsTable (line 15) | function LLMsTable () { FILE: frontend/app/src/components/llm/LlmInfo.tsx function LlmInfo (line 6) | function LlmInfo ({ className, id }: { className?: string, id: number | ... FILE: frontend/app/src/components/llm/UpdateLLMForm.tsx function UpdateLlmForm (line 19) | function UpdateLlmForm ({ llm }: { llm: LLM }) { method get (line 126) | get (data) { method set (line 129) | set () { method get (line 144) | get (data) { method set (line 147) | set (data, value) { method get (line 165) | get (data) { method set (line 168) | set (data, value) { FILE: frontend/app/src/components/llm/hooks.ts function useAllLlms (line 5) | function useAllLlms (flag: boolean = true) { function useLlm (line 9) | function useLlm (id: number | null | undefined) { function useLLMProviders (line 18) | function useLLMProviders () { FILE: frontend/app/src/components/loader.tsx function Loader (line 7) | function Loader ({ loading, children = 'Loading data' }: { loading: bool... FILE: frontend/app/src/components/managed-dialog-close.tsx function ManagedDialogClose (line 4) | function ManagedDialogClose ({ children }: { children: (close: () => voi... FILE: frontend/app/src/components/managed-dialog.tsx type ManagedDialogProps (line 7) | interface ManagedDialogProps extends Omit,... function ManagedDialog (line 10) | function ManagedDialog (props: ManagedDialogProps) { FILE: frontend/app/src/components/managed-panel.tsx function useManagedPanel (line 10) | function useManagedPanel () { FILE: frontend/app/src/components/model-component-info.tsx type ModelBase (line 5) | type ModelBase = { type ModelComponentInfoProps (line 12) | interface ModelComponentInfoProps { function ModelComponentInfo (line 20) | function ModelComponentInfo ({ className, isLoa... FILE: frontend/app/src/components/nextjs/NextLink.tsx type NextLinkProps (line 9) | interface NextLinkProps extends Pick FILE: frontend/app/src/components/remark-content/remark-content.tsx function RemarkContent (line 18) | function RemarkContent ({ className, children = '' }: { className?: stri... FILE: frontend/app/src/components/reranker/CreateRerankerForm.tsx function CreateRerankerForm (line 41) | function CreateRerankerForm ({ transitioning, onCreated }: { transitioni... FILE: frontend/app/src/components/reranker/RerankerInfo.tsx function RerankerInfo (line 6) | function RerankerInfo ({ className, id }: { className?: string, id: numb... FILE: frontend/app/src/components/reranker/RerankerModelsTable.tsx function RerankerModelsTable (line 15) | function RerankerModelsTable () { FILE: frontend/app/src/components/reranker/UpdateRerankerForm.tsx function UpdateRerankerForm (line 19) | function UpdateRerankerForm ({ reranker }: { reranker: Reranker }) { method get (line 131) | get (data) { method set (line 134) | set () { method get (line 151) | get (data) { method set (line 154) | set (data, value) { method get (line 172) | get (data) { method set (line 175) | set (data, value) { FILE: frontend/app/src/components/reranker/hooks.ts function useAllRerankers (line 5) | function useAllRerankers (flag = true) { function useReranker (line 9) | function useReranker (id: number | null | undefined) { function useRerankerProviders (line 18) | function useRerankerProviders () { FILE: frontend/app/src/components/resource-not-found.tsx function ResourceNotFound (line 4) | function ResourceNotFound ({ FILE: frontend/app/src/components/secondary-navigator-list.tsx constant NAV_WIDTH (line 10) | const NAV_WIDTH = '14rem'; type CSSProperties (line 13) | interface CSSProperties { function SecondaryNavigatorLink (line 45) | function SecondaryNavigatorLink ({ pathname, children }: { pathname: str... FILE: frontend/app/src/components/security-setting-provider.tsx function withReCaptcha (line 10) | async function withReCaptcha ( FILE: frontend/app/src/components/settings-form/GeneralSettingsField.tsx type GeneralSettingsFieldAccessor (line 11) | interface GeneralSettingsFieldAccessor { function fieldAccessor (line 17) | function fieldAccessor (key: Key, defaultV... function GeneralSettingsField (line 30) | function GeneralSettingsField ({ FILE: frontend/app/src/components/settings-form/GeneralSettingsForm.tsx function GeneralSettingsForm (line 5) | function GeneralSettingsForm ({ data, loading, readonly, onUpdate,... FILE: frontend/app/src/components/settings-form/accessor-helper.ts type AccessorHelper (line 5) | interface AccessorHelper { function createAccessorHelper (line 18) | function createAccessorHelper (): AccessorHelper { FILE: frontend/app/src/components/settings-form/context.tsx type OnUpdateField (line 4) | type OnUpdateField = (value: T, accessor: GeneralSettingsField... type GeneralSettingsFormContextValues (line 6) | interface GeneralSettingsFormContextValues { function useGeneralSettingsFormContext (line 15) | function useGeneralSettingsFormContext () { function GeneralSettingsFormContextProvider (line 19) | function GeneralSettingsFormContextProvider ({ value, children }: ... FILE: frontend/app/src/components/settings-form/utils.ts function shallowPick (line 1) | function shallowPick (data: Data, path: [K... FILE: frontend/app/src/components/settings/CustomJsSettings.tsx function CustomJsSettings (line 8) | function CustomJsSettings ({ schema }: { schema: AllSettings }) { FILE: frontend/app/src/components/settings/IntegrationsSettings.tsx function IntegrationsSettings (line 6) | function IntegrationsSettings ({ schema, showPostVerificationSettings }:... function LangfuseSettings (line 15) | function LangfuseSettings ({ schema, hideTitle, disabled, onChanged }: {... function ExperimentalPostVerificationSettings (line 26) | function ExperimentalPostVerificationSettings ({ schema, hideTitle, disa... FILE: frontend/app/src/components/settings/SettingsField.tsx type SettingsFieldProps (line 19) | interface SettingsFieldProps { function SettingsField (line 32) | function SettingsField ({ name, item, arrayItemSchema, objectSchema, onC... function Operations (line 181) | function Operations ({ refreshing, name, defaultValue }: { refreshing: b... FILE: frontend/app/src/components/settings/WebsiteSettings.tsx function WebsiteSettings (line 10) | function WebsiteSettings ({ schema }: { schema: AllSettings }) { FILE: frontend/app/src/components/settings/WidgetSnippet.tsx function parseOrigin (line 9) | function parseOrigin (url: string) { function WidgetSnippet (line 17) | function WidgetSnippet () { FILE: frontend/app/src/components/signin.tsx function Signin (line 20) | function Signin ({ noRedirect = false, callbackUrl }: { noRedirect?: boo... function refineCallbackUrl (line 77) | function refineCallbackUrl (url: string | undefined) { FILE: frontend/app/src/components/site-header-actions.tsx type SiteSocialsType (line 9) | type SiteSocialsType = { function SiteHeaderActions (line 15) | function SiteHeaderActions (props: { FILE: frontend/app/src/components/site-header.tsx function SiteHeaderSmallScreen (line 6) | function SiteHeaderSmallScreen ({ setting }: { setting: PublicWebsiteSet... function SiteHeaderLargeScreen (line 14) | function SiteHeaderLargeScreen ({ setting }: { setting: PublicWebsiteSet... FILE: frontend/app/src/components/site-nav.tsx type NavGroup (line 14) | interface NavGroup { type NavBaseItem (line 22) | interface NavBaseItem { type NavLinkItem (line 30) | interface NavLinkItem extends NavBaseItem { type NavParentItem (line 40) | interface NavParentItem extends NavBaseItem { type CustomItem (line 48) | interface CustomItem { type NavItem (line 55) | type NavItem = NavLinkItem | NavParentItem | CustomItem; type SiteNavProps (line 61) | interface SiteNavProps { function SiteNav (line 65) | function SiteNav ({ groups }: SiteNavProps) { function SiteNavGroup (line 79) | function SiteNavGroup ({ group, current }: { group: NavGroup, current: s... function isActive (line 93) | function isActive (current: string, item: NavLinkItem) { function SiteParentItem (line 143) | function SiteParentItem ({ current, item, active }: { current: string, i... function SiteNavLinkItem (line 180) | function SiteNavLinkItem ({ item, active, sub = false }: { item: NavLink... FILE: frontend/app/src/components/system/BootstrapStatusProvider.tsx function BootstrapStatusProvider (line 22) | function BootstrapStatusProvider ({ bootstrapStatus, children }: { boots... function useBootstrapStatus (line 26) | function useBootstrapStatus () { FILE: frontend/app/src/components/system/SystemWizardBanner.tsx function SystemWizardBanner (line 6) | function SystemWizardBanner () { FILE: frontend/app/src/components/theme-toggle.tsx function ThemeToggle (line 9) | function ThemeToggle () { FILE: frontend/app/src/components/theme.stories.tsx method render (line 12) | render () { function ColorExample (line 75) | function ColorExample ({ name, className }: { name: string, className: s... function AlertExample (line 101) | function AlertExample ({ name }: { name: ComponentProps['v... FILE: frontend/app/src/components/themed-style.ts function ThemedStyle (line 6) | function ThemedStyle ({ children, ...themes }: { children: ReactElement<... FILE: frontend/app/src/components/ui/badge.tsx type BadgeProps (line 26) | interface BadgeProps function Badge (line 30) | function Badge({ className, variant, ...props }: BadgeProps) { FILE: frontend/app/src/components/ui/button.tsx type ButtonProps (line 36) | interface ButtonProps FILE: frontend/app/src/components/ui/calendar.tsx type CalendarProps (line 10) | type CalendarProps = React.ComponentProps function Calendar (line 12) | function Calendar({ FILE: frontend/app/src/components/ui/carousel.tsx type CarouselApi (line 12) | type CarouselApi = UseEmblaCarouselType[1] type UseCarouselParameters (line 13) | type UseCarouselParameters = Parameters type CarouselOptions (line 14) | type CarouselOptions = UseCarouselParameters[0] type CarouselPlugin (line 15) | type CarouselPlugin = UseCarouselParameters[1] type CarouselProps (line 17) | type CarouselProps = { type CarouselContextProps (line 24) | type CarouselContextProps = { function useCarousel (line 35) | function useCarousel() { FILE: frontend/app/src/components/ui/chart.tsx constant THEMES (line 9) | const THEMES = { light: "", dark: ".dark" } as const type ChartConfig (line 11) | type ChartConfig = { type ChartContextProps (line 21) | type ChartContextProps = { function useChart (line 27) | function useChart() { function getPayloadConfigFromPayload (line 320) | function getPayloadConfigFromPayload( FILE: frontend/app/src/components/ui/command.tsx type CommandDialogProps (line 26) | interface CommandDialogProps extends DialogProps {} FILE: frontend/app/src/components/ui/dot-pattern.tsx type DotPatternProps (line 5) | interface DotPatternProps { function DotPattern (line 16) | function DotPattern({ FILE: frontend/app/src/components/ui/form.beta.tsx function useFormContext (line 23) | function useFormContext< function formDomEventHandlers (line 37) | function formDomEventHandlers (form: FormApi, disabled?: boolean): ... function useFormField (line 59) | function useFormField< type FormProps (line 95) | interface FormProps< function Form (line 105) | function Form< function FormField (line 116) | function FormField< function FormItem (line 151) | function FormItem ({ className, ref, ...props }: ComponentProps<'div'>) { function FormLabel (line 161) | function FormLabel ({ ref, className, ...props }: ComponentProps) { function FormDescription (line 194) | function FormDescription ({ ref, className, ...props }: ComponentProps<'... function FormMessage (line 207) | function FormMessage ({ ref, className, children, ...props }: ComponentP... function FormSubmit (line 228) | function FormSubmit ({ FILE: frontend/app/src/components/ui/form.tsx type FormFieldContextValue (line 23) | type FormFieldContextValue< type FormItemContextValue (line 76) | type FormItemContextValue = { FILE: frontend/app/src/components/ui/input.tsx type InputProps (line 5) | interface InputProps extends React.ComponentProps<"input"> { FILE: frontend/app/src/components/ui/pagination.tsx type PaginationLinkProps (line 37) | type PaginationLinkProps = { FILE: frontend/app/src/components/ui/sheet.tsx type SheetContentProps (line 52) | interface SheetContentProps FILE: frontend/app/src/components/ui/sidebar.tsx constant SIDEBAR_COOKIE_NAME (line 22) | const SIDEBAR_COOKIE_NAME = "sidebar:state" constant SIDEBAR_COOKIE_MAX_AGE (line 23) | const SIDEBAR_COOKIE_MAX_AGE = 60 * 60 * 24 * 7 constant SIDEBAR_WIDTH (line 24) | const SIDEBAR_WIDTH = "16rem" constant SIDEBAR_WIDTH_MOBILE (line 25) | const SIDEBAR_WIDTH_MOBILE = "18rem" constant SIDEBAR_WIDTH_ICON (line 26) | const SIDEBAR_WIDTH_ICON = "3rem" constant SIDEBAR_KEYBOARD_SHORTCUT (line 27) | const SIDEBAR_KEYBOARD_SHORTCUT = "b" type SidebarContext (line 29) | type SidebarContext = { function useSidebar (line 41) | function useSidebar() { FILE: frontend/app/src/components/ui/skeleton.tsx function Skeleton (line 3) | function Skeleton({ FILE: frontend/app/src/components/ui/sonner.tsx type ToasterProps (line 6) | type ToasterProps = React.ComponentProps FILE: frontend/app/src/components/ui/textarea.tsx type TextareaProps (line 5) | interface TextareaProps FILE: frontend/app/src/components/ui/toast.tsx type ToastProps (line 115) | type ToastProps = React.ComponentPropsWithoutRef type ToastActionElement (line 117) | type ToastActionElement = React.ReactElement FILE: frontend/app/src/components/ui/toaster.tsx function Toaster (line 13) | function Toaster() { FILE: frontend/app/src/components/ui/use-toast.ts constant TOAST_LIMIT (line 11) | const TOAST_LIMIT = 1 constant TOAST_REMOVE_DELAY (line 12) | const TOAST_REMOVE_DELAY = 1000000 type ToasterToast (line 14) | type ToasterToast = ToastProps & { function genId (line 30) | function genId() { type ActionType (line 35) | type ActionType = typeof actionTypes type Action (line 37) | type Action = type State (line 55) | interface State { function dispatch (line 136) | function dispatch(action: Action) { type Toast (line 143) | type Toast = Omit function toast (line 145) | function toast({ ...props }: Toast) { function useToast (line 174) | function useToast() { FILE: frontend/app/src/components/use-active-theme.ts function useActiveTheme (line 6) | function useActiveTheme () { type AvailableTheme (line 13) | type AvailableTheme = ReturnType; FILE: frontend/app/src/components/use-data-table.ts function useDataTable (line 15) | function useDataTable () { FILE: frontend/app/src/components/use-href.ts constant EMPTY (line 4) | const EMPTY = new URLSearchParams(); function useHref (line 6) | function useHref () { FILE: frontend/app/src/components/use-latest-ref.tsx function useLatestRef (line 3) | function useLatestRef (value: T) { FILE: frontend/app/src/components/use-search-param.ts function useSearchParam (line 3) | function useSearchParam (key: string, defaultValue: string | null = null) { FILE: frontend/app/src/components/use-size.ts function useSize (line 3) | function useSize () { FILE: frontend/app/src/core/schema/settings/security.ts type ISecuritySettingResult (line 13) | type ISecuritySettingResult = z.infer; FILE: frontend/app/src/experimental/chat-verify-service/api.ts type VerifyStatus (line 4) | const enum VerifyStatus { type MessageVerifyResponse (line 13) | interface MessageVerifyResponse { type Run (line 20) | type Run = { function getVerify (line 38) | async function getVerify (url: string) { function isFinalVerifyState (line 42) | function isFinalVerifyState (state: VerifyStatus) { function isVisibleVerifyState (line 46) | function isVisibleVerifyState (state: VerifyStatus) { function assertEnabled (line 50) | function assertEnabled (value: string | undefined): asserts value is str... FILE: frontend/app/src/experimental/chat-verify-service/message-verify-result-markdown.tsx function MessageVerifyResultMarkdown (line 20) | function MessageVerifyResultMarkdown ({ content }: { content: string }) { type BlockContentMap (line 58) | interface BlockContentMap { type PhrasingContentMap (line 62) | interface PhrasingContentMap { type ContainerDirective (line 68) | interface ContainerDirective extends Parent { type LeafDirective (line 74) | interface LeafDirective extends Node { type TextDirective (line 80) | interface TextDirective extends Node { function formatSqlPlugin (line 86) | function formatSqlPlugin () { function handleDirectivePlugin (line 101) | function handleDirectivePlugin () { FILE: frontend/app/src/experimental/chat-verify-service/message-verify.stories.tsx method render (line 23) | render (_, { id }) { type Story (line 41) | type Story = StoryObj; FILE: frontend/app/src/experimental/chat-verify-service/message-verify.tsx function MessageVerify (line 21) | function MessageVerify ({ assistant }: { assistant: ChatMessageControlle... function MessageVerifyHeader (line 133) | function MessageVerifyHeader ({ creating, error, result }: { creating?: ... FILE: frontend/app/src/experimental/experimental-features-provider.tsx type ExperimentalFeatures (line 5) | interface ExperimentalFeatures { function ExperimentalFeaturesProvider (line 11) | function ExperimentalFeaturesProvider ({ features, children }: { feature... function useExperimentalFeatures (line 19) | function useExperimentalFeatures () { FILE: frontend/app/src/experimental/experimental-features.ts function experimentalFeatures (line 3) | function experimentalFeatures (): Partial { FILE: frontend/app/src/hooks/use-mobile.tsx constant MOBILE_BREAKPOINT (line 3) | const MOBILE_BREAKPOINT = 768 function useIsMobile (line 5) | function useIsMobile() { FILE: frontend/app/src/hooks/use-model-provider.ts function useModelProvider (line 7) | function useModelProvider { FILE: frontend/app/src/lib/buffered-readable-stream.test.ts method start (line 14) | async start (controller) { function mock (line 29) | async function mock (array: string[]) { FILE: frontend/app/src/lib/buffered-readable-stream.ts function bufferedReadableStreamTransformer (line 1) | function bufferedReadableStreamTransformer (): TransformStream> { FILE: frontend/app/src/lib/request/authenticationHeaders.ts function authenticationHeaders (line 1) | async function authenticationHeaders (): Promise> { FILE: frontend/app/src/lib/request/base-url.react-server.ts constant BASE_URL (line 1) | const BASE_URL = process.env.BASE_URL!; FILE: frontend/app/src/lib/request/base-url.tidbai-widget.ts constant BASE_URL (line 1) | let BASE_URL: string; FILE: frontend/app/src/lib/request/base-url.ts constant BASE_URL (line 1) | const BASE_URL = process.env.BASE_URL || ''; FILE: frontend/app/src/lib/request/errors.ts class ServerError (line 2) | class ServerError extends Error { method constructor (line 3) | constructor (readonly response: Response, message: string) { function isServerError (line 11) | function isServerError (error: unknown, status?: number | number[]): err... function normalizeServerErrors (line 25) | function normalizeServerErrors (response: Response, error: unknown): Ser... FILE: frontend/app/src/lib/request/list-all-helper.ts function listAllHelper (line 3) | async function listAllHelper (api: (params: PageParams) => Promise (schema: S): ((responseOrProm... function handleNullableResponse (line 38) | function handleNullableResponse (schema: S): ((respon... FILE: frontend/app/src/lib/request/url.ts function requestUrl (line 4) | function requestUrl (pathname: string, searchParams?: object) { FILE: frontend/app/src/lib/stackvm/core/instructions/instructions.ts class Assign (line 4) | class Assign extends InstructionModel<'assign'> { method outputs (line 5) | outputs (step: Step<'assign'>): string[] { class Calling (line 10) | class Calling extends InstructionModel<'calling'> { class Jmp (line 13) | class Jmp extends InstructionModel<'jmp'> { method connect (line 14) | connect (step: model.StepModel<'jmp'>): ConnectInfo[] { class Reasoning (line 38) | class Reasoning extends InstructionModel<'reasoning'> { class Fallback (line 41) | class Fallback extends InstructionModel { FILE: frontend/app/src/lib/stackvm/core/instructions/registry.ts class InstructionsRegistry (line 4) | class InstructionsRegistry { method registerFallback (line 8) | registerFallback (model: InstructionModel) { method register (line 12) | register (instruction: I, model: In... method visits (line 16) | visits (step: StackVM.Step) { method getInputVars (line 20) | getInputVars (step: StackVM.Step) { method getOutputVars (line 24) | getOutputVars (step: StackVM.Step) { method getConnections (line 28) | getConnections (step: StackVM.model.StepModel) { type VisitResult (line 33) | type VisitResult = boolean | StackVM.SeqNo[]; type ConnectInfo (line 35) | type ConnectInfo = { required?: boolean, target: string, handle: string } class InstructionModel (line 37) | class InstructionModel { method visit (line 38) | visit (_step: StackVM.Step): VisitResult { method inputs (line 43) | inputs (step: StackVM.Step): string[] { method outputs (line 65) | outputs (step: StackVM.Step): string[] { method connect (line 85) | connect (step: StackVM.model.StepModel): ConnectInfo[] { FILE: frontend/app/src/lib/stackvm/core/model.ts type VarBindingInfo (line 5) | interface VarBindingInfo { type StepModel (line 10) | interface StepModel extends... type VarModel (line 16) | interface VarModel { type ParsedState (line 26) | interface ParsedState extends State { function parseState (line 33) | function parseState (state: State): ParsedState { type StatePatch (line 75) | interface StatePatch { function diffStates (line 80) | function diffStates (from: ParsedState, to: ParsedState): StatePatch { function addVar (line 87) | function addVar (bindings: VarBindingInfo[], newOne: VarBindingInfo) { type Patch (line 94) | type Patch = { function diff (line 100) | function diff (from: T[], to: T[]): Patch { FILE: frontend/app/src/lib/stackvm/core/types.ts type SeqNo (line 1) | type SeqNo = number type KnownInstructions (line 3) | interface KnownInstructions { type Instructions (line 27) | interface Instructions extends KnownInstructions { type InstructionType (line 31) | type InstructionType = string & keyof Instructions; type Step (line 33) | interface Step { type Plan (line 41) | interface Plan { type State (line 47) | interface State { FILE: frontend/app/src/lib/stackvm/core/visit.ts function visit (line 5) | function visit (state: model.ParsedState, stepId: string, iterFunc: (ste... FILE: frontend/app/src/lib/strings.ts function extractTemplates (line 3) | function extractTemplates (text: string) { FILE: frontend/app/src/lib/tanstack-form.ts function subscribeField (line 3) | function subscribeField> ( FILE: frontend/app/src/lib/typing-utils.ts type KeyOfType (line 1) | type KeyOfType = keyof { [P in keyof T as T[P] extends Value ?... FILE: frontend/app/src/lib/ui-error.tsx function toastSuccess (line 3) | function toastSuccess (message: string) { function toastError (line 7) | function toastError (title: string, error: unknown) { function getErrorMessage (line 11) | function getErrorMessage (error: unknown) { FILE: frontend/app/src/lib/utils.ts function cn (line 4) | function cn(...inputs: ClassValue[]) { FILE: frontend/app/src/lib/zod.ts constant BASE_DATE (line 4) | const BASE_DATE = startOfToday(); function zodDateOnlyString (line 6) | function zodDateOnlyString () { function zodJsonDate (line 12) | function zodJsonDate (message?: string) { function zodJsonText (line 16) | function zodJsonText () { function zodFile (line 29) | function zodFile () { function zodJson (line 33) | function zodJson () { type PageParams (line 56) | interface PageParams { type Page (line 61) | interface Page { function zodPage (line 69) | function zodPage (itemSchema: Z) { function noPage (line 79) | function noPage (data: T[]): Page { FILE: frontend/packages/widget-react/src/Widget.tsx type WidgetProps (line 19) | interface WidgetProps { type WidgetInstance (line 34) | interface WidgetInstance { method open (line 115) | get open () { method open (line 118) | set open (o) { method dark (line 124) | get dark () { method dark (line 127) | set dark (d) { method initialized (line 130) | get initialized (): true { return true; } method newChat (line 131) | newChat (content: string) { function useShouldDisplayTrigger (line 242) | function useShouldDisplayTrigger (src: string) { FILE: frontend/packages/widget-react/src/load-config.ts function loadConfig (line 6) | async function loadConfig () { FILE: frontend/packages/widget-react/src/prepare-gtag.ts constant DATA_LAYER_NAME (line 3) | const DATA_LAYER_NAME = '__tidbai_dataLayer'; function prepareGtag (line 5) | function prepareGtag (id: string) {