I was just implementing Adding Semantic Cache…. I am facing an issue with the chains. My chain upon invocation, is repeating the same output, it gave for the first query.
I switched from OpenAI to use WatsonX as my data embeddings were created WatsonX’s embedding model.
naive_rag_chain.invoke("What is workflow?")
Output: 'Workflows are used to automate complex business processes.'
naive_rag_chain.invoke("How to delete a workflow?")
Output: 'Workflows are used to automate complex business processes.'