Documentation Index
Fetch the complete documentation index at: https://docs.clarifeye.ai/llms.txt
Use this file to discover all available pages before exploring further.
Search Operations
Perform semantic search and Cypher queries against your warehouse data.Semantic Search
Perform semantic search across warehouse data:query(str): Natural language search queryn_objects(int, optional): Number of results. Default: 10indexes(list[str], optional): Specific indexes. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falseenrich_with_chunks(bool, optional): Whether to enrich the retrieved objects with their original chunks. Default: Falseincluded_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude in the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: Falseincluded_objects(list[dict], optional): Objects to include in the retrieval. A list of[{"name": entity_name}]. Default: []excluded_objects(list[dict], optional): Objects to exclude in the retrieval. A list of[{"name": entity_name}]. Default: []selected_documents(list[dict], optional): List of{"id": document_uuid}to select from. Default []
- either by a tag id and its parent, for example:
{"parent": "job-category", "children": "data-engineer"} - or by its hierarchy and its id, for example
{"id": "fullstack-engineer","id_tree": "job-roles"}
Full text search
Performs a full text search on the knowledge graph fulltext indexes.query(str): Natural language search queryn_objects(int, optional): Number of results. Default: 10indexes(list[str], optional): Specific indexes. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falseenrich_with_chunks(bool, optional): Whether to enrich the retrieved objects with their original chunks. Default: Falseincluded_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude in the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: Falseincluded_objects(list[dict], optional): Objects to include in the retrieval. A list of[{"name": entity_name}]. Default: []excluded_objects(list[dict], optional): Objects to exclude in the retrieval. A list of[{"name": entity_name}]. Default: []selected_documents(list[dict], optional): List of{"id": document_uuid}to select from. Default []
Hybrid Search
Performs a semantic search and fulltext search and combine the two results. The scores are combined using Reciprocal Rank Fusion(RRF). Returns the Score (semantic similarity score), Full-text score (BM25 score), and RRF score (the final score used for getting the top N).query(str): Natural language search queryn_objects(int, optional): Number of results. Default: 10indexes(list[str], optional): Specific indexes. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falseenrich_with_chunks(bool, optional): Whether to enrich the retrieved objects with their original chunks. Default: Falseincluded_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude in the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: Falseincluded_objects(list[dict], optional): Objects to include in the retrieval. A list of[{"name": entity_name}]. Default: []excluded_objects(list[dict], optional): Objects to exclude in the retrieval. A list of[{"name": entity_name}]. Default: []selected_documents(list[dict], optional): List of{"id": document_uuid}to select from. Default []
Cypher Queries
Generate a cypher query from a user instruction
Execute Neo4j Cypher queries against the warehouse graph database:
cypher_query(str): Valid Cypher query string
Execute a templated Cypher query against the warehouse graph database:
query_template(str): Valid Cypher query string. This query string can include variables ($something)template_variables: (dict) A dictionary of{variable_name: variable_value}enrich_with_chunks: (bool) If true, objects are enriched with the content of the chunk they derive from
Generating answers
Generate answers to questions using different search strategies to retrieve relevant context.Using Semantic Search
Generate an answer using semantic search to retrieve relevant context:question(str): The question to answerquery(str, optional): Custom search query for context retrieval. Defaults to question if not providedn_objects(int, optional): Number of context objects to retrieve. Default: 10indexes(list[str], optional): Specific indexes to search. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falseenrich_with_chunks(bool, optional): Whether to enrich retrieved objects with original chunks. Default: Falseincluded_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude from the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: False
Using Full-text Search
Generate an answer using full-text search to retrieve relevant context:question(str): The question to answerquery(str, optional): Custom search query for context retrieval. Defaults to question if not providedindexes(list[str], optional): Specific indexes to search. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falsen_objects(int, optional): Number of context objects to retrieve. Default: 10enrich_with_chunks(bool, optional): Whether to enrich retrieved objects with original chunks. Default: Falseincluded_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude from the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: False
Using Hybrid Search
Generate an answer using hybrid search (combining semantic and full-text search) to retrieve relevant context:question(str): The question to answerquery(str, optional): Custom search query for context retrieval. Defaults to question if not providedindexes(list[str], optional): Specific indexes to search. Default: [“chunks”]reformulate_query(bool, optional): Whether to perform HyDE query reformulation before retrieving objects. Default: Falsen_objects(int, optional): Number of context objects to retrieve. Default: 10enrich_with_chunks(bool, optional): Whether to enrich retrieved objects with original chunks. Default: Falserrf_k(int, optional): Constant used in Reciprocal Rank Fusion algorithm. Default: 60included_tags(list[dict], optional): Tags to include in the search. Default: []excluded_tags(list[dict], optional): Tags to exclude from the search. Default: []rerank(bool, optional): Whether to perform reranking on retrieved objects. Default: False