Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by dfhg on Monday December 25, 2023 @12:37AM
(#38760126)
Another question, which one is preferred, LlamaIndex or Langchain, for RAG? Thanks in advance for your insights.
[ Parent
| on HN ]
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by isoprophlex on Monday December 25, 2023 @01:51AM
(#38760430)
You basically don't use langchain for anything besides 30 minute demos that you copied from someone else's github. It has a completely spaghettified API, is not performant, and forces you into excessive mental contortions to reason about otherwise simple tasks.
LlamaIndex is pretty good.
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by monkeydust on Monday December 25, 2023 @04:07AM
(#38761010)
Yea discovered this with Langchain last week. Was great for a demo then started to push it harder and spent ages trawling Reddit, discord, GitHub trying to find solutions to issues only to discover what was supposed to be supported was deprecated. Got a massive headache for what should have been a simple change. Moved on now.
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by sophiabits on Monday December 25, 2023 @04:48AM
(#38761229)
Yeah +1
We originally started out building features with LangChain (loading chains from YAML sounded good—it felt like it would be easy to get non-engineers to help with prompt development) but in practice it’s just way too complicated. Nice idea, but the execution feels lacking.
It also doesn’t help that LangChain is evolving so rapidly. When we first started using it a lot of code samples on the internet couldn’t be copy/pasted because of import paths changing, and at one point we had to bump by ~60 patch versions to get a bug fix, which was painful because it broke all kinds of stuff
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by simonw on Monday December 25, 2023 @01:54AM
(#38760444)
LlamaIndex is mainly focused on RAG. LangChain does a ton of other stuff too. I'd focus on LlamaIndex first.
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by mathis-l on Monday December 25, 2023 @04:42AM
(#38761199)
Haystack [1] is another good option. It‘s modular, doesn’t get in your way and is particularly strong at retrieval. People like the documentation too.
Disclaimer: I work at deepset
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by d4rkp4ttern on Monday December 25, 2023 @07:17AM
(#38762003)
Echoing others’ sentiments, I was frustrated with the bloat and obscurity of existing tools. This led me to start building Langroid with an agent-oriented paradigm 8 months ago https://github.com/langroid/langroid
We have companies using it in production for various use-cases. They especially like our RAG and multi-agent orchestration.
See my other comment for details.
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by wahnfrieden on Monday December 25, 2023 @12:11PM
(#38764243)
what's the "groid"? isn't that a slur?
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by viksit on Monday December 25, 2023 @12:16PM
(#38764284)
language android i imagine..
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by d4rkp4ttern on Monday December 25, 2023 @02:03PM
(#38765113)
You got it
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by averageRoyalty on Monday December 25, 2023 @07:05PM
(#38767591)
If you think that's bad, you're gonna hate Scunthorpe.
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by wahnfrieden on Tuesday December 26, 2023 @05:39PM
(#38776873)
that's not offensive
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by giardini on Monday January 01, 2024 @03:57PM
(#38835278)
s'not?
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by wahnfrieden on Tuesday January 02, 2024 @04:00PM
(#38847108)
s'not
Re:Ask HN: How do I train a custom LLM/ChatGPT on my own doc...
by eskibars on Monday December 25, 2023 @07:18AM
(#38762010)
Besides the other comments in this thread, I'd really recommending looking at least first to the (relatively new) "Managed index" in LlamaIndex: https://docs.llamaindex.ai/en/stable/community/integrations/... . These handle combining the retrieval with the generative side. I've seen a lot of users both get frustrated and get bad results by trying to write their own glue to string together various components of retrieval and generation and these are much easier to get started with