langchain Profile picture
Mar 28 15 tweets 10 min read Twitter logo Read on Twitter
To say today's release (🦜🔗v0.0.124) is MASSIVE would be an understatement

This merges in a massive backlog of PRs including:

📄 8 *brand new* document loaders
🪝 2 new retrieval methods
🪘 1 new embedding class
🛟 2 LLM improvements

🧵
💪 BigQuery Document Loader

Thanks to lu-cashmoney you can now load in data that you have in BigQuery

With awesome walkthrough of extra functionality like adding to metadata and specifying which columns are fetched

Docs: python.langchain.com/en/latest/modu…
📓 Notion Document Loader

Thanks to @sbusso you can now load data directly from @NotionHQ's APIs

Includes awesome instructions for getting started

Docs: python.langchain.com/en/latest/modu…
🟩 WhatsApp Document Loader

Thanks to Moshe Malka you can now easily load in data from your WhatsApp chats

Docs: python.langchain.com/en/latest/modu…
🦆 DuckDB Document Loader

Thanks to @HauckTrent, you can now easily load in data from the popular @duckdb database

Again, contains awesome instructions for only loading certain columns and adding source to metadata

Docs: python.langchain.com/en/latest/modu…
🐼 Pandas DataFrame Loader

@deliprao makes his return!

Thanks to Delip, you can now load in data from a pandas dataframe

Docs: python.langchain.com/en/latest/modu…
🗺️ Sitemap Document Loader

Helpful for loading pages from a whole website, this will load a sitemap from a given URL, and then scrape and load all the pages in the sitemap, returning each page as a document.

🙏 @tim_asp

Docs: python.langchain.com/en/latest/modu…
🪗 Load multiple URLs concurrently

This isn't a new loader, but thanks to @tim_asp you can load multiple webpages concurrently - speeding up web loading greatly

Docs: python.langchain.com/en/latest/modu…
🟦 Azure blob storage file and container loaders

For everyone with data in Azure - have no fear! Thanks to @eavanvalkenburg you can now easily load it

Container: python.langchain.com/en/latest/modu…

File: python.langchain.com/en/latest/modu…
🟥 Redis Retriever

Peter Shi added a new method to the Redis VectorStore to get all documents above some similarity

We took the opportunity to write a custom Redis Retriever to show how to use this new functionality

PR: github.com/hwchase17/lang…

Docs: python.langchain.com/en/latest/modu…
🦙 Llama Index Retriever

Lots of people have been asking for a better @gpt_index integration - thanks to @jerryjliu0 we now have one!

You can easily use your Llama Index as a retriever

PR: github.com/hwchase17/lang…
🛤️ Better token tracking

In a big quality of life improvement, iocuydi added support for more detailed token tracking

Notebook: python.langchain.com/en/latest/modu…
🎏 Support for streaming in @AnthropicAI LLM

You can now stream responses if you are using the Anthropic LLM wrapper!

Docs: python.langchain.com/en/latest/modu…
🪘 Jina Embeddings

There's a new embedding provider!

You can now use Jina to create embeddings from your documents!

Docs: python.langchain.com/en/latest/modu…
There's a lot of other, smaller quality of life improvements - we're going to shout those out in a separate thread

What a weekend 😅

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with langchain

langchain Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @LangChainAI

Mar 1
🤖🔧Agent ToolKits🤖🔧

blog.langchain.dev/agent-toolkits/

Collections of tools aimed at allowing an agent to best interact with a particular resource. Eg:

🧱 SQL DBs
🔄 APIs
🐍 Python REPL
Others!

Allows them to use complex resources and recover from mistakes

Some 🤯 examples 👇
🧱 SQL DBs

This agent builds off of SQLDatabaseChain, but is designed to work on larger databases and be fault tolerant

Tools include: get table names, get metadata for a table, create query, fix query

Python: langchain.readthedocs.io/en/latest/modu…
JS: hwchase17.github.io/langchainjs/do…
In the example below, it:

- asks for the list of tables
- then the table metadata
- then executes the query
- encounters an error caused by joining on a column that doesn't exist
- fixes the error and executes new query Image
Read 11 tweets
Feb 27
New 🦜🔗0.0.95 Python release!

🗺️ Atlas DB Vectorstore - @nomic_ai (this has a really cool visualization tool!)
🌊 DeepLake Vectorstore (5.2k stars) - @activeloopai
🚧CoNLL-U Document Loader - @KleiberIngo
🔳New one-liners for getting started with document question answering

🧵
🗺️ Atlas DB

A new option for your vectorstore:

Atlas DB by @nomic_ai

One cool thing about this vectorstore is they provide an easy way to explore your embeddings!

Documentation: langchain.readthedocs.io/en/latest/modu… Image
🌊 DeepLake

Deep Lake (by @activeloopai) is a popular (5.2k stars on GitHub) data lake for deep learning applications

GitHub: github.com/activeloopai/d…

Documentation: langchain.readthedocs.io/en/latest/modu…
Read 5 tweets
Feb 19
Sunday release with two BIG new features!

🧑‍⚖️Self-Critique Chain with Constitutional AI - based on @AnthropicAI paper, implemented by @Charlie43375818

🏡 Self-Hosted Model Support via @runhouse_ - for enterprise 🏭, privacy conscious👀 users, by @DonnyGreenberg

👇
🧑‍⚖️Self-Critique Chain with Constitutional AI

This chain is based on the following recent paper by @AnthropicAI:

anthropic.com/constitutional…

In this paper, they formulate the concept of Constitutional Principles to define how a language model should behave
@Charlie43375818 implemented a chain to utilize these ideas

This chain wraps a LLMChain and takes in a list of principles

For a given input, it runs it through the original LLMChain and then critiques and revises the output according to the principles
Read 7 tweets
Feb 18
Weekend Release! 🦜🔗v0.0.89

🟧 Hacker News loader @W_Y_X
🎥 Subtitle loader
🚧The @UnstructuredIO team continues to beef up their loader - @mrobinson0623
🐛Many docs and bug fixes

small 🧵
🟧 Hacker News loader

You can now easily load posts and comments from your favorite orange site

s/o @W_Y_X for adding!

Docs: langchain.readthedocs.io/en/latest/modu…
🎥 Subtitle loader

Lots of movies, tv shows, etc have `.srt` files for subtitles

With a great suggestion and example provided by user parkinos in the discord, you can now load those types of files and use them in LangChain

Docs: langchain.readthedocs.io/en/latest/modu…
Read 5 tweets
Feb 17
It's finally here...

⚡️Javascript/TypeScript support for LangChain⚡️

BIG thank you to everyone in the community who contributed to this, especially @_seanyneutron and @nfcampos ❤️

GitHub: github.com/hwchase17/lang…
Blog: blog.langchain.dev/typescript-sup…

LOTS to discuss, lets 🧵 Image
🔆 HighLights

🦜 All the same abstractions (prompts, LLMs, textsplitters, embeddings, vectorstores, chains, agents, memory) are now natively available in js

💿There is a common serializable format for cross-language sharing

❤️This was only doable with community support
❓Why TypeScript?

LLMs started out as popular for the ML/data engineering crowd, who prefer Python

However, as the LangChain community grew over time, we started to hear a lot of requests for Javascript support

And so it became a priority to deliver this
Read 14 tweets
Jan 29
Big weekend release! 🚀🚀🚀

Too many changes to even try to list in a single tweet 😅 But as a teaser:

- Support for using GPUs with @huggingface models
- A decorator to easily turn a function into a Tool
- Lots more!

🧵
🔧 Decorator for creating tools

Thanks to @jxnlco you can now create a Tool from a function with a simple decorator. Easier than ever to have agents start interacting with arbitrary functions!

Documentation: langchain.readthedocs.io/en/latest/modu…
🤗 Support for GPUs with @huggingface models

Thanks to @parth_29 you can now more easily use GPUs for huggingface pipelines!

PR here: github.com/hwchase17/lang…
Read 7 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us on Twitter!

:(