Retrieval in LangChain
blog.langchain.dev
Retrieval in LangChain
1–10 of 71 posts
Re: Retrieval in LangChain
#2Re: Retrieval in LangChain
#3Re: Retrieval in LangChain
#4Some "agents" in their vernacular that I've built.
* A reminder system that can take a completely free-form English description and turn it into a precise date and time and schedule it with an external scheduler.
* A tool that can take math either in English or ascii like y = 2x^2 + ln(x) and turn it into rendered LaTeX.
* A line editor that let's you ingest Word documents and suggests edits for specific sections.
* A chess engine.
Like it's crazy at just how trivial all this stuff is to build.
Re: Retrieval in LangChain
#5Another idea I've had is to "overfit" a generative model like GPT on a dataset but pay more attention to how url and the like are tokenised
Re: Retrieval in LangChain
#6I've been playing around with sentence embeddings to search documents, but I wonder how useful they are as a natural language interface for a database. The way one might phrase a question might be very different content wise from how the document describes the answer. Maybe it might be possible to do some type of transform where the question is transformed into a possible answer and then turned into a embedding but I…
Re: Retrieval in LangChain
#7I've been playing around with sentence embeddings to search documents, but I wonder how useful they are as a natural language interface for a database. The way one might phrase a question might be very different content wise from how the document describes the answer. Maybe it might be possible to do some type of transform where the question is transformed into a possible answer and then turned into a embedding but I…
Here you go https://twitter.com/theseamouse/status/1614453236349693953
Re: Retrieval in LangChain
#8I've been playing around with sentence embeddings to search documents, but I wonder how useful they are as a natural language interface for a database. The way one might phrase a question might be very different content wise from how the document describes the answer. Maybe it might be possible to do some type of transform where the question is transformed into a possible answer and then turned into a embedding but I…
That's what hypothetical embeddings solve: https://summarity.com/hyde
There are also encoding schemes for question-answer retrieval (e.g. ColBERT)
Re: Retrieval in LangChain
#9I've been playing around with sentence embeddings to search documents, but I wonder how useful they are as a natural language interface for a database. The way one might phrase a question might be very different content wise from how the document describes the answer. Maybe it might be possible to do some type of transform where the question is transformed into a possible answer and then turned into a embedding but I…
Also would you just return a list of likely candidates and loop over the result set to see if any info is relevant to the question and then have the the final pass try to answer the question.