<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Integration on Vchord</title>
    <link>https://vchord.pgsty.com/pgvecto-rs/integration/</link>
    <description>Recent content in Integration on Vchord</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    
    
    
      <lastBuildDate>Mon, 02 Nov 2026 19:35:19 +0800</lastBuildDate>
    
    
      <atom:link href="https://vchord.pgsty.com/pgvecto-rs/integration/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
        <title>LangChain</title>
        <link>https://vchord.pgsty.com/pgvecto-rs/integration/langchain/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://vchord.pgsty.com/pgvecto-rs/integration/langchain/</guid>
        <description>&lt;p&gt;This document describes the LangChain integration.&lt;/p&gt;&#xA;&lt;p&gt;LangChain is a framework for developing applications powered by language models. It is a set of tools that allows you to fine-tune, deploy, and use language models in production.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;pgvecto.rs&lt;/code&gt; provides a LangChain integration that allows you to retrieve the most similar vectors in LangChain.&lt;/p&gt;&#xA;&lt;h2 id=&#34;install-dependencies&#34;&gt;Install dependencies&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Some dependencies are required to use the LangChain integration:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-abbb9613-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;sh&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-abbb9613-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install langchain langchain-openai pgvecto-rs&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;You could start the postgres instance with &lt;code&gt;pgvecto.rs&lt;/code&gt; extension in a docker container:&lt;/p&gt;</description>
      </item>
    <item>
        <title>LlamaIndex</title>
        <link>https://vchord.pgsty.com/pgvecto-rs/integration/llama-index/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://vchord.pgsty.com/pgvecto-rs/integration/llama-index/</guid>
        <description>&lt;p&gt;LlamaIndex is a simple, flexible data framework for connecting custom data sources to large language models (LLMs).&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;pgvecto.rs&lt;/code&gt; provides a LlamaIndex integration that allows you to retrieve the most similar vectors.&lt;/p&gt;&#xA;&lt;h2 id=&#34;install-dependencies&#34;&gt;Install dependencies&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;Some dependencies are required to use the LlamaIndex integration:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-0e6424d9-fence-0&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;sh&#34; data-td-line-count=&#34;1&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-0e6424d9-fence-0-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;pip install llama-index &lt;span class=&#34;s2&#34;&gt;&amp;#34;pgvecto_rs[sdk]&amp;#34;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;You could start the postgres instance with &lt;code&gt;pgvecto.rs&lt;/code&gt; extension in a docker container:&lt;/p&gt;&#xA;&lt;div class=&#34;td-code td-code--untitled&#34; id=&#34;td-code-0e6424d9-fence-1&#34; data-td-code data-td-code-auto-id&#xA;     data-td-language=&#34;sh&#34; data-td-line-count=&#34;5&#34;&gt;&#xA;  &lt;div class=&#34;td-code__viewport&#34; id=&#34;td-code-0e6424d9-fence-1-viewport&#34; data-td-code-viewport&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-sh&#34; data-lang=&#34;sh&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;docker run &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  --name pgvecto-rs-demo &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  -e &lt;span class=&#34;nv&#34;&gt;POSTGRES_PASSWORD&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;mysecretpassword &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  -p 5432:5432 &lt;span class=&#34;se&#34;&gt;\&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  -d tensorchord/pgvecto-rs:pg16-v0.2.0&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Then you can connect to the database using the &lt;code&gt;psql&lt;/code&gt; command line tool. The default username is &lt;code&gt;postgres&lt;/code&gt;, and the default password is &lt;code&gt;mysecretpassword&lt;/code&gt;.&lt;/p&gt;</description>
      </item>
    <item>
        <title>Citus</title>
        <link>https://vchord.pgsty.com/pgvecto-rs/integration/citus/</link>
        <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
        
        <guid>https://vchord.pgsty.com/pgvecto-rs/integration/citus/</guid>
        <description>&lt;p&gt;&lt;code&gt;citus&lt;/code&gt; is a PostgreSQL extension that turns Postgres into a distributed database. &lt;code&gt;pgvecto.rs&lt;/code&gt; works well with &lt;code&gt;citus&lt;/code&gt; Here are the steps to enable vector search in a distributed PostgreSQL instance.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;citus&lt;/code&gt; can works on &lt;a href=&#34;https://docs.citusdata.com/en/latest/installation/single_node.html&#34;&gt;Single-Node&lt;/a&gt; and &lt;a href=&#34;https://docs.citusdata.com/en/latest/installation/multi_node.html&#34;&gt;Multi-Node&lt;/a&gt;, both of which are compatible with &lt;code&gt;pgvecto.rs&lt;/code&gt; natively.&lt;/p&gt;&#xA;&lt;h2 id=&#34;single-node-citus&#34;&gt;Single-Node Citus&#xA;&lt;/h2&gt;&#xA;&lt;p&gt;First, prepare the dockerfile with &lt;code&gt;pgvecto.rs&lt;/code&gt; and &lt;code&gt;citus&lt;/code&gt; installed and attach them to PostgreSQL.&lt;/p&gt;&#xA;&lt;div class=&#34;td-callout td-callout--details td-callout--collapsible&#34; role=&#34;note&#34; data-td-callout-collapsible&gt;&#xA;  &lt;div class=&#34;td-callout__title&#34;&gt;&lt;span class=&#34;td-callout__label&#34;&gt;Details&lt;/span&gt;&lt;/div&gt;&#xA;  &lt;div class=&#34;td-callout__body&#34;&gt;&#xA;&lt;p&gt;&lt;code&gt;citus&lt;/code&gt; must be placed first in &lt;code&gt;shared_preload_libraries&lt;/code&gt; due to its restrictions.&lt;/p&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;</description>
      </item>
    
  </channel>
</rss>
