LangChain
>Large language models (LLMs) are emerging as a transformative technology, enabling developers to build applications that they previously could not. But using these LLMs in isolation is often not enough to create a truly powerful app - the real power comes when you can combine them with other sources of computation or knowledge.
> This library is aimed at assisting in the development of those types of applications. Common examples of these types of applications include:
> â Question Answering over specific documents
LLMã§äžèšã®ãããªã¿ã¹ã¯ãããªããã¢ããªãã€ããããã®ããŒã«ãªã®ããª


LlamaIndex ãš langchainã®éãã¯ïŒ

ã
LlamaIndexãã¯ã
å°éç¥èãå¿
èŠãšãã質åå¿çãã£ããããããç°¡åã«äœæã§ããã©ã€ãã©ãªã§ããåæ§ã®ãã£ãããããã¯ãLangChainãã§ãäœæã§ããŸããããLlamaIndexãã¯ãã³ãŒãæ°è¡ã§å®æããŠãæ軜ãªã®ãç¹åŸŽã«ãªããŸã¹ã
éãã¯æ軜ãã ãïŒ


LangChainã®Indexã«é¢ããããã¥ã¡ã³ãã«ãè€éãªã€ã³ããã¯ã¹æ§é ã«ã€ããŠã¯
GPTIndex(
LlamaIndexã®å€ãåå)ãèªãããšæžããŠããã®ã§ãLlamaIndexã®ã€ã³ããã¯ã¹ã®æ©èœã®ãã¡ã·ã³ãã«ãªãã®ã ããå®è£
ããŠãããšèããããŸãã
>Indexes refer to ways to structure documents so that LLMs can best interact with them. This module contains utility functions for working with documents, different types of indexes, and then examples for using those indexes in chains. LangChain provides common indices for working with data (most prominently support for vector databases). For more complicated index structures, it is worth checking out GPTIndex.
> (DeepL)ã€ã³ããã¯ã¹ãšã¯ãLLMãããã¥ã¡ã³ããšæé©ãªããåããã§ããããã«ãããã¥ã¡ã³ããæ§é åããæ¹æ³ãæããŸãããã®ã¢ãžã¥ãŒã«ã«ã¯ãããã¥ã¡ã³ããæ±ãããã®ãŠãŒãã£ãªãã£é¢æ°ãããŸããŸãªã¿ã€ãã®ã€ã³ããã¯ã¹ããããŠãã§ãŒã³ã§ãããã®ã€ã³ããã¯ã¹ã䜿çšããããã®äŸãå«ãŸããŠããŸããLangChainã¯ãããŒã¿ãæ±ãããã®äžè¬çãªã€ã³ããã¯ã¹ãæäŸããŸãïŒæãé¡èãªã®ã¯ããã¯ãã«ããŒã¿ããŒã¹ã®ãµããŒãïŒãããè€éãªã€ã³ããã¯ã¹æ§é ã«ã€ããŠã¯ãGPTIndexããã§ãã¯ãã䟡å€ããããŸãã
åçãçéã w
ïŒçéã§ã¯ãªãã£ãïŒ
ãããã·ã³ãã«ãªãã®ã ã決ããã¡ã§å®è£
ãããŠãæ¹ãç¹ã«ãã ããã®ãªã人ã«ãšã£ãŠã¯ãæåã®äžæ©ãã¯æ¥œã£ãŠããšãªããããªãïŒ

çŸç¶ã®åã®èæãšããŠã¯LlamaIndexã¯å²ãšé
·ããšæããŠãŠãLangChainã¯ãŸã èªãã§ãªãããããããªã
ãªãã»ã©

blu3moã¯ãç®æ¡æžããèžãŸããŠã€ã³ããã¯ã¹ãäœã£ããããè¯ãã®ã§ã¯ããè©Šããããšæã£ãŠãããåã¯ãTop KãèžãŸããŠè§£çããããé¢é£ã®çºèŠãæ¯æŽã§ããã®ã§ã¯ã(
é¡äŒŒåºŠTop Kãããã³ããã«ç©ã¿ãã)ãè©ŠããããŠããããããã¬ãŒã«ãå€ããè¡çºããã©ã®çšåºŠããããããã¯ããã°ãã°ãæåã®äžæ¬ãã®æ¥œããšéçžé¢ãªã®ã ããªããšæã£ãŠã
ããã蟺ãçéã«æããŸãã

bingã®åç
>ãLlamaIndexãã¯ãã³ãŒãæ°è¡ã§å®æããŠãæ軜ãªã®ãç¹åŸŽã«ãªããŸã¹ã
LIamaIndexã®ã»ãã楜ãšèªãã

西尟ããã®åç
>ãè€éãªã€ã³ããã¯ã¹æ§é ã«ã€ããŠã¯GPTIndex(LlamaIndexã®å€ãåå)ãèªãã
LangChainã®ã»ããæåã®äžæ©ã楜ãšããæå³ã ãšæã£ã

ãã®æå³ã¯ãŸã£ãããªã

ãªãã»ã©

>LlamaIndexã®ã€ã³ããã¯ã¹ã®æ©èœã®ãã¡ã·ã³ãã«ãªãã®ã ããå®è£
ããŠãããšèããããŸãã
ãã®èŸºããããLangChainã®æ¹ãLIamaIndexããã§ããããšãå°ãªãïŒ=決ããã¡ã§å®è£
ãããŠããïŒã®ã§æ¥œãªã®ããªãšè§£éããŸãã
ã§ããããããæå³ã¯ãªããšããããšã§ããã®ã§å
çºèšãä¿®æ£ããŸãã
ããšããš
ãæåã®äžæ©ã®æ¥œããã¯èªåã«ã¯éèŠã§ã¯ãªããšèããŠããŠããLlamaIndex ãš langchainã®éãã¯ïŒãã«å¯ŸããŠAIãããã«ãã©ãŒã«ã¹ããåçãããŠãéãã¯æ軜ãã ãïŒããšãªã£ãŠããããå
¬åŒããã¥ã¡ã³ãã®äžã§äºã€ã®æ¯èŒããããŠãããšãããåŒçšããŠèšåããããšããæµã

>@zerebom_3: ã²ããŒãLangChainãããããªããããŸããæ°è¡ã§GoogleãšGPTãç¹ãããããšã¯æããªãã£ã
>