Knowledgator UTCA
KnowledgatorGitHubDiscord
  • Welcome to UTCA documentation!
  • Quickstart
  • Concepts
    • Components
    • Types of components
    • ExecutionSchema
    • Context
    • Scopes
  • Development and Contribution
    • Contribution
    • Future relises
  • Framework structure
  • Core
    • Component
    • BaseExecutor
    • Action
    • Executable
    • Evaluator
    • Memory management
    • Schemas
    • Exceptions
  • Structural components
    • ExecutionSchema
    • Switch
    • ForEach
    • Filter
    • While
    • Condition
    • BREAK
    • Log
  • Base Actions
    • Flush
    • AddData
    • RenameAttribute
    • RenameAttributeQuery
    • SetValue
    • UnpackValue
    • NestToKey
    • ExecuteFunction
  • Predictors
    • Predictor
    • Transformers predictors
    • Transformers schemas
    • TokenSearcherPredictor
    • ComprehendItPredictor
    • GLiNERPredictor
    • OpenAIChatGPTPredictor
    • OpenAIWhisperPredictor
  • Tasks
    • Task
    • ComprehendIt
    • TokenSearcherTextCleaner
    • TokenSearcherNER
    • TokenSearcherQandA
    • TokenSearcherRelationExtraction
    • GLiNER
    • GLiNERRelationExtraction
    • GLiNERQandA
    • OpenAIChat
    • WhisperSpeechToText
    • TransformersTextToSpeech
    • TransformersChartsAndPlotsAnalysis
    • TransformersDocumentQandA
    • TransformersImageClassification
    • TransformersVisualQandA
    • TransformersObjectDetection
    • TransformersTextEmbedding
    • TransformersEntityLinking
    • TransformersTokenClassifier
    • TransformersTextSummarization
    • TransformersTextualQandA
    • TransformersTextClassification
    • TransformersChat
    • Objects
    • Chat tasks utilities
    • Relation extraction tasks utilities
  • Executable Schemas
    • SemanticSearchSchema
    • Web2Meaning
    • RequestsHTML
  • Datasources
    • Audio
    • DB
      • SQL
      • Neo4j
      • Chroma
      • Qdrant
    • Google Documents
    • Google Sheets
    • Image
    • Index
    • JSON
    • PDF
    • Plain text
    • Video
  • Conditions
    • RePattern
    • SemanticCondition
  • APIs
    • GoogleCloudClient
  • Integrations
    • Google Cloud
  • Examples
    • Basic image classification
    • Text to speech
    • PDF document processing
Powered by GitBook
On this page
  • Module: implementation.datasources.db
  • Neo4jClient
  • __init__
  • close
  • session
  • Neo4jWriteAction
  • __init__
  • execute
  • Neo4jReadAction
  • __init__
  • execute
  1. Datasources
  2. DB

Neo4j

PreviousSQLNextChroma

Last updated 11 months ago

Module: .datasources.db



Neo4jClient

Neo4j client


__init__

Arguments:

  • url (str): Connetcion URL.

  • user (str): Authentication user.

  • password (str): Authentication password.


close

Close driver.


session

Arguments:

  • database (str): Database name.

Returns:

  • Session: Neo4j session.




Neo4jWriteAction


__init__

Arguments:

  • database (str): Database name.

  • transaction_function (Callable[[ManagedTransaction, Any], Any]): Transaction that will be executed. More about transaction_functions:

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.


execute

Arguments:

  • input_data (Dict[str, Any]): Expected keys:

    • "args" (List[Any], optional): Positional arguments for transaction function.

    • "kwargs" (Dict[str, Any], optional): Keyword arguments for transaction function.

Returns:

  • Any: Result of the executed transaction




Neo4jReadAction


__init__

Arguments:

  • database (str): Database name.

  • transaction_function (Callable[[ManagedTransaction, Any], Any]): Transaction that will be executed. More about transaction_functions:

  • name (Optional[str], optional): Name for identification. If equals to None, class name will be used. Defaults to None.


execute

Arguments:

  • input_data (Dict[str, Any]): Expected keys:

    • "args" (List[Any], optional): Positional arguments for transaction function.

    • "kwargs" (Dict[str, Any], optional): Keyword arguments for transaction function.

Returns:

  • Any: Result of the executed transaction



Subclass of . Type of [Dict[str, Any], Any]

client (): Client that will be used.

Subclass of . Type of [Dict[str, Any], Any]

client (): Client that will be used.

Action
Action
Action
Action
Neo4jClient
Neo4jClient
implementation
Run your own transactions - Neo4j Python Driver ManualNeo4j Graph Data Platform
Run your own transactions - Neo4j Python Driver ManualNeo4j Graph Data Platform
Logo
Logo