/langdb-samples

Primary LanguageJupyter NotebookMIT LicenseMIT

LangDB Samples

This repository hosts code samples for LangDB. All samples are written in SQL.

LangDB Kernel

Use the LangDB kernel to run the notebook samples.

Structure

The repository is structured as follows:

  • getting_started/: This directory contains notebooks related to simple LLM pipelines using LangDB.
  • rag/: This directory contains notebooks related to RAG concepts.

Getting Started

Sample Description
Using Providers How to use LangDB with different providers
Embed and Query PDFs Explains how to run RAG on PDF files
Sentiment Analysis - I Create a sentiment model using LLMs
Sentiment Analysis - 2 Create a batched sentiment model using LLMs
Structured Layout Extraction from PDFs and Images Convert PDF documents into structured tables
Text-to-SQL Model which can run SQL queries based on text
Working with Postgres, MySQL, MongoDB, and Others How to use different database types

RAG

Sample Description
Combine Structured Data w/ Unstructured Data using LangDB Combine insights from both structured and unstructured data
Corrective RAG Corrective RAG powered by LangDB
QA on PDF & RAG using LangDB QA on PDF & RAG using LangDB

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute.

License

This project is licensed under the terms of the MIT license. See LICENSE for more information.