Uses of Class
dev.langchain4j.rag.content.retriever.hibernate.HibernateContentRetriever.HibernateContentRetrieverBuilder
Packages that use HibernateContentRetriever.HibernateContentRetrieverBuilder
-
Uses of HibernateContentRetriever.HibernateContentRetrieverBuilder in dev.langchain4j.rag.content.retriever.hibernate
Methods in dev.langchain4j.rag.content.retriever.hibernate that return HibernateContentRetriever.HibernateContentRetrieverBuilderModifier and TypeMethodDescriptionHibernateContentRetriever.builder()Sets theChatModelto be used for generating HQL queries from natural language.HibernateContentRetriever.HibernateContentRetrieverBuilder.databaseStructure(String databaseStructure) Sets the structure of the entity model, which will be provided to the LLM in the system message.HibernateContentRetriever.HibernateContentRetrieverBuilder.entityManagerFactory(jakarta.persistence.EntityManagerFactory entityManagerFactory) Sets theEntityManagerFactoryto be used for executing HQL queries and extracting the metamodel.HibernateContentRetriever.HibernateContentRetrieverBuilder.maxRetries(Integer maxRetries) Sets the maximum number of retries to perform if Hibernate cannot execute the generated HQL query.HibernateContentRetriever.HibernateContentRetrieverBuilder.promptTemplate(PromptTemplate promptTemplate) Sets thePromptTemplateto be used for creating the system message.HibernateContentRetriever.HibernateContentRetrieverBuilder.sessionFactory(org.hibernate.SessionFactory sessionFactory) Sets theSessionFactoryto be used for executing HQL queries and extracting the metamodel.