Find answers from the community

Updated 3 months ago

Hello everyone, has anyone had any

Hello everyone, has anyone had any success using the neo4j db property graph index as a chat engine? I have this code, and it sort of works but the citations that I usually get with a pgvector implementation are gone. Am I doing this right?
My code:
Plain Text
    logger.info("Connecting to index from Neo4j DB...")
    graph_store = Neo4jPropertyGraphStore(
        username="neo4j",
        password="password",
        url="bolt://localhost:7687",
    )
    index = PropertyGraphIndex.from_existing(
        property_graph_store=graph_store,
    )
    logger.info("Finished connecting to index from Neo4j DB.")
    return index.as_chat_engine(
        similarity_top_k=app_config.TOP_K,
        # system_prompt=system_prompt,
        chat_mode="context",
        # response_mode="tree_summarize",
        # vector_store_query_mode=app_config.VECTOR_STORE_QUERY_MODE,
    )
0
L
3 comments
Whenever I uncomment the system prompt or any of the commented params, the application crashes because apparently those keywords get passed to the vector query?
@Logan M Got any pointers boss? 🥺
Oh hmm. It should probably be updated to handle passing those params
Add a reply
Sign up and join the conversation on Discord