Tomás Mercado 687f2c8047 Feat: typesense vector store (#1244)
* chore(langchain): add typesense

* feat(langchain/vectorstores): add typesense vectorstore

* tests(langchain/vectorstore): add tests transform between docs & typesense records

* docs(examples): add typesense vectorstore examples

* feat(vectorstores/typesense): add fromTexts

* docs(examples): add typesense client to example

* docs(examples): add import and similarity search examples

* chore(package): typesense as peerDependency

* chore(create-entrypoints): add vectorstores/typesense

* chore(package): typesense optional dep

* lint(vectorstores/typesense): fix errors

* fix(vectorstores/typesense): throw error instead of catch it

* refactor(vectorstores/typesense): use asyncCaller in default import

* refactor(vectorstores/typesense): impor types with import type

* feat(vectorstores/typesense): add similaritySearchVectorWithScore & similaritySearchWithScore methods

* Fix entrypoints

* Remove unnecessary TypeSense initialisation

* fix(examples/typesense): add missing properties

* feat(typesense): add documentation

* fix deleted entry points by error

* fix deleted entry points by error

* Some fixes

* Fix bug

* refactor(typesense): remove modifySearchParams, use filters

* fix on docs

* feat(typesense): addVectors method implemented

* fix(typesense): change test after change

* Updates

* Update docs

---------

Co-authored-by: Tat Dat Duong <david@duong.cz>
Co-authored-by: Nuno Campos <nuno@boringbits.io>
2023-06-14 14:44:49 +01:00
2023-02-14 10:04:50 -08:00
2023-04-18 16:16:21 +01:00
2023-06-14 14:44:49 +01:00
2023-04-28 11:43:10 +01:00
2023-02-07 17:00:39 -08:00
2023-04-05 13:55:06 +01:00
2023-02-14 10:04:50 -08:00
2023-02-16 21:19:24 -08:00
2023-06-14 14:44:49 +01:00

🦜🔗 LangChain.js

Building applications with LLMs through composability

CI npm License: MIT Twitter Open in Dev Containers

Looking for the Python version? Check out LangChain.

Production Support: As you move your LangChains into production, we'd love to offer more comprehensive support. Please fill out this form and we'll set up a dedicated support Slack channel.

Quick Install

yarn add langchain

import { OpenAI } from "langchain/llms/openai";

Supported Environments

LangChain is written in TypeScript and can be used in:

  • Node.js (ESM and CommonJS) - 18.x, 19.x, 20.x
  • Cloudflare Workers
  • Vercel / Next.js (Browser, Serverless and Edge functions)
  • Supabase Edge Functions
  • Browser
  • Deno

🤔 What is this?

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.

📖 Full Documentation

For full documentation of prompts, chains, agents and more, please see here.

Relationship with Python LangChain

This is built to integrate as seamlessly as possible with the LangChain Python package. Specifically, this means all objects (prompts, LLMs, chains, etc) are designed in a way where they can be serialized and shared between languages.

The LangChainHub is a central place for the serialized versions of these prompts, chains, and agents.

💁 Contributing

As an open source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infra, or better documentation.

Check out our contributing guidelines for instructions on how to contribute.

S
Description
LanchainJS but with convenience functions suitable for VDBMS use
Readme MIT 11 MiB
Languages
TypeScript 84.2%
HTML 11.4%
JavaScript 3.8%
CSS 0.5%