I visited neo4j ‘s website and section about genAI and KG. I scrolled down and tried to implement the code provided at the website: ground LLM and KG.
In my model, I did not used openAI API, but an open source model from huggingface.
#Define the model for HuggingFaceEmbeddings
modelPath = 'sentence-transformers/all-mpnet-base-v2' # Update this to your specific model
Create a dictionary with model configuration options
model_kwargs = {'device': 'cpu'}
Create a dictionary with encoding options
encode_kwargs = {'normalize_embeddings': False}
Initialize an instance of HuggingFaceEmbeddings
emb = HuggingFaceEmbeddings(
model_name=modelPath,
model_kwargs=model_kwargs,
encode_kwargs=encode_kwargs
I got this error: Unable to retrieve routing information
I tried to double check my connection, run the aura db online using cypher, but the error persisted.
What should I do?