Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class NeoOgmKnowledgeGraphService(sessionFactory: <Error class: unknown class>, ogmCypherSearch: OgmCypherSearch, modelProvider: <Error class: unknown class>, properties: NeoRagServiceProperties) : SchemaResolver

Implements several interfaces to read and write knowledge graph data to Neo4j using Neo4j OGM.

Link copied to clipboard
data class NeoRagServiceProperties(val uri: String = "bolt://localhost:7687", val username: String = "neo4j", password: String = "brahmsian", val chunkNodeName: String = "Chunk", val entityNodeName: String = "Entity", val name: String = "OgmRagService", val description: String = "RAG service using Neo4j OGM for querying and embedding", val contentElementIndex: String = "embabel-content-index", val entityIndex: String = "embabel-entity-index", val packages: List<String> = listOf("not.a.real.package"))
Link copied to clipboard
class OgmCypherSearch(sessionFactory: <Error class: unknown class>, queryResolver: LogicalQueryResolver) : CypherSearch
Link copied to clipboard
abstract class OgmMappedEntity(val id: String) : MappedEntity

Superclass for all entities that are mapped using Neo4j OGM.

Link copied to clipboard
abstract class OgmMappedNamedEntity(val name: String, val id: String) : OgmMappedEntity
Link copied to clipboard
class OgmRagService(modelProvider: <Error class: unknown class>, ogmCypherSearch: OgmCypherSearch, schemaResolver: SchemaResolver, sessionFactory: <Error class: unknown class>, platformTransactionManager: <Error class: unknown class>, properties: NeoRagServiceProperties = NeoRagServiceProperties()) : AbstractWritableRagService

Performs RAG queries in readonly transactions using Neo4j OGM. Requires a Neo4j OGM PlatformTransactionManager to be configured in the Spring context.

Link copied to clipboard
class SchemaDrivenCypherRagQueryGenerator(modelProvider: <Error class: unknown class>, schema: KnowledgeGraphSchema) : CypherRagQueryGenerator

Generate RAG queries from a given schema

Functions

Link copied to clipboard
fun cleanLlmCypher(rawResponse: String): String

Try to extract Cypher from the response