Replies: 3 comments 5 replies
-
Here's a neat talk on the subject: https://www.youtube.com/watch?v=RFnZB76KVWk |
Beta Was this translation helpful? Give feedback.
-
I'd like to suggest these video series from LanChain team: RAG From Scratch It touches RAG in general and also embedding. Using Embedding has two side of story:
Something neat about how the python version of LangChain works on handling template and passing function around, e.g: (full source code) template = """Answer the question based only on the following context:
{context}
Question: {question}
"""
prompt = ChatPromptTemplate.from_template(template)
...
retriever = vectorstore.as_retriever()
...
rag_chain = (
{"context": retriever, "question": RunnablePassthrough()}
| prompt
| llm
| StrOutputParser()
)
rag_chain.invoke("What is Task Decomposition?") As you see it allows that the |
Beta Was this translation helpful? Give feedback.
-
I've been experimenting with pgvector and Bumblebee / NX for generating embeddings with open models. Pretty impressive results with my initial testing. Now I'm thinking how this could work in a langchain type of setup where the chain could know when make a retrieval query (similar to how tools/functions work) and pull the retrieved data into the context. |
Beta Was this translation helpful? Give feedback.
-
Here's a place to start talking about how embeddings can be supported. It was started as issue #40, but it isn't concrete enough to do anything with yet.
Beta Was this translation helpful? Give feedback.
All reactions