langchain/docs/integrations
Hao Chen a4c9053d40
Integrate Clickhouse as Vector Store (#5650)
<!--
Thank you for contributing to LangChain! Your PR will appear in our
release under the title you set. Please make sure it highlights your
valuable contribution.

Replace this with a description of the change, the issue it fixes (if
applicable), and relevant context. List any dependencies required for
this change.

After you're done, someone will review your PR. They may suggest
improvements. If no one reviews your PR within a few days, feel free to
@-mention the same people again, as notifications can get lost.

Finally, we'd love to show appreciation for your contribution - if you'd
like us to shout you out on Twitter, please also include your handle!
-->

#### Description

This PR is mainly to integrate open source version of ClickHouse as
Vector Store as it is easy for both local development and adoption of
LangChain for enterprises who already have large scale clickhouse
deployment.

ClickHouse is a open source real-time OLAP database with full SQL
support and a wide range of functions to assist users in writing
analytical queries. Some of these functions and data structures perform
distance operations between vectors, [enabling ClickHouse to be used as
a vector
database](https://clickhouse.com/blog/vector-search-clickhouse-p1).
Recently added ClickHouse capabilities like [Approximate Nearest
Neighbour (ANN)
indices](https://clickhouse.com/docs/en/engines/table-engines/mergetree-family/annindexes)
support faster approximate matching of vectors and provide a promising
development aimed to further enhance the vector matching capabilities of
ClickHouse.

In LangChain, some ClickHouse based commercial variant vector stores
like
[Chroma](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/chroma.py)
and
[MyScale](https://github.com/hwchase17/langchain/blob/master/langchain/vectorstores/myscale.py),
etc are already integrated, but for some enterprises with large scale
Clickhouse clusters deployment, it will be more straightforward to
upgrade existing clickhouse infra instead of moving to another similar
vector store solution, so we believe it's a valid requirement to
integrate open source version of ClickHouse as vector store.

As `clickhouse-connect` is already included by other integrations, this
PR won't include any new dependencies.

#### Before submitting

<!-- If you're adding a new integration, please include:

1. Added a test for the integration:
https://github.com/haoch/langchain/blob/clickhouse/tests/integration_tests/vectorstores/test_clickhouse.py
2. Added an example notebook and document showing its use: 
* Notebook:
https://github.com/haoch/langchain/blob/clickhouse/docs/modules/indexes/vectorstores/examples/clickhouse.ipynb
* Doc:
https://github.com/haoch/langchain/blob/clickhouse/docs/integrations/clickhouse.md

See contribution guidelines for more information on how to write tests,
lint
etc:


https://github.com/hwchase17/langchain/blob/master/.github/CONTRIBUTING.md
-->

1. Added a test for the integration:
https://github.com/haoch/langchain/blob/clickhouse/tests/integration_tests/vectorstores/test_clickhouse.py
2. Added an example notebook and document showing its use: 
* Notebook:
https://github.com/haoch/langchain/blob/clickhouse/docs/modules/indexes/vectorstores/examples/clickhouse.ipynb
* Doc:
https://github.com/haoch/langchain/blob/clickhouse/docs/integrations/clickhouse.md


#### Who can review?

Tag maintainers/contributors who might be interested:

<!-- For a quicker response, figure out the right person to tag with @

  @hwchase17 - project lead

  Tracing / Callbacks
  - @agola11

  Async
  - @agola11

  DataLoaders
  - @eyurtsev

  Models
  - @hwchase17
  - @agola11

  Agents / Tools / Toolkits
  - @vowelparrot

  VectorStores / Retrievers / Memory
  - @dev2049

 -->
 
@hwchase17 @dev2049 Could you please help review?

---------

Co-authored-by: Dev 2049 <dev.dev2049@gmail.com>
2023-06-05 13:32:04 -07:00
..
vectara Vectara (#5069) 2023-05-24 01:24:58 -07:00
agent_with_wandb_tracing.ipynb nit (#5578) 2023-06-01 14:21:15 -07:00
ai21.md
aim_tracking.ipynb
airbyte.md docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
aleph_alpha.md docs: ecosystem/integrations update 1 (#5219) 2023-05-29 07:25:17 -07:00
analyticdb.md
annoy.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
anyscale.md
apify.md
argilla.md Dev2049/add argilla callback (#5621) 2023-06-02 09:05:06 -07:00
arxiv.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
atlas.md
aws_s3.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
azlyrics.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
azure_blob_storage.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
azure_cognitive_search_.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
azure_openai.md docs: ecosystem/integrations update 1 (#5219) 2023-05-29 07:25:17 -07:00
bananadev.md
beam.md Beam (#4996) 2023-05-24 01:25:18 -07:00
bedrock.md Retitles Bedrock doc to appear in correct alphabetical order in site nav (#5639) 2023-06-04 14:39:25 -07:00
bilibili.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
blackboard.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
cassandra.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
cerebriumai.md
chroma.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
clearml_tracking.ipynb docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
clickhouse.md Integrate Clickhouse as Vector Store (#5650) 2023-06-05 13:32:04 -07:00
cohere.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
college_confidential.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
comet_tracking.ipynb
confluence.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
ctransformers.md Add C Transformers for GGML Models (#5218) 2023-05-25 13:42:44 -07:00
databerry.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
databricks.ipynb
deepinfra.md Harrison/deep infra (#5403) 2023-05-29 07:10:50 -07:00
deeplake.md
diffbot.md docs: ecosystem/integrations update 2 (#5282) 2023-05-29 07:19:43 -07:00
discord.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
docugami.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
duckdb.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
elasticsearch.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
evernote.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
facebook_chat.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
figma.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
forefrontai.md
git.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
gitbook.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
google_bigquery.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
google_cloud_storage.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
google_drive.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
google_search.md
google_serper.md
gooseai.md
gpt4all.md
graphsignal.md
gutenberg.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
hacker_news.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
hazy_research.md
helicone.md
huggingface.md
ifixit.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
imsdb.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
jina.md
lancedb.md
llamacpp.md
mediawikidump.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
metal.md
microsoft_onedrive.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
microsoft_powerpoint.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
microsoft_word.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
milvus.md
mlflow_tracking.ipynb
modal.md
modern_treasury.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
momento.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
myscale.md
nlpcloud.md
notion.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
obsidian.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
openai.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
opensearch.md
openweathermap.md docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
petals.md
pgvector.md
pinecone.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
pipelineai.md
predictionguard.md Harrison/prediction guard update (#5404) 2023-05-29 07:14:59 -07:00
promptlayer.md
psychic.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
qdrant.md
rebuff.ipynb docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
reddit.md docs ecosystem/integrations update 3 (#5470) 2023-05-31 17:54:05 -07:00
redis.md
replicate.md
roam.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
runhouse.md
rwkv.md
sagemaker_endpoint.md docs: ecosystem/integrations update 1 (#5219) 2023-05-29 07:25:17 -07:00
searx.md
serpapi.md
sklearn.md Add SKLearnVectorStore (#5305) 2023-05-28 08:17:42 -07:00
slack.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
spacy.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
spreedly.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
stochasticai.md
stripe.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
tair.md
telegram.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
tomarkdown.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
trello.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
twitter.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
unstructured.md docs: unstructured no longer requires installing detectron2 from source (#5524) 2023-05-31 15:03:21 -07:00
vectara.md Vectara (#5069) 2023-05-24 01:24:58 -07:00
vespa.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
wandb_tracking.ipynb docs(integration): update colab and external links in WandbTracing docs (#5602) 2023-06-02 02:58:42 -07:00
weather.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
weaviate.md
whatsapp.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
whylabs_profiling.ipynb docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
wikipedia.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
wolfram_alpha.md docs: cleaning (#5413) 2023-05-30 13:58:16 -07:00
writer.md
yeagerai.md
youtube.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
zep.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00
zilliz.md docs ecosystem/integrations update 4 (#5590) 2023-06-03 15:29:03 -07:00