Llm, Rag, Knowledge Graphs, Vector Search, Retrieval Augmented.
a concise response with maximum three sentences""" prompt = PromptTemplate(template=template, input_variables=["context","question"]) llm = ChatOpenAI(model="gpt-4") rag_chain = LLMChain(prompt=prompt,llm=llm) docs = compression_retriever.invoke(query) context = format_docs(docs) answer =