mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 13:54:48 +00:00
docs supabase update (#4935)
# docs: updated `Supabase` notebook - the title of the notebook was inconsistent (included redundant "Vectorstore"). Removed this "Vectorstore" - added `Postgress` to the title. It is important. The `Postgres` name is much more popular than `Supabase`. - added description for the `Postrgress` - added more info to the `Supabase` description
This commit is contained in:
parent
55baa0d153
commit
c75c0775e1
@ -5,7 +5,7 @@
|
|||||||
"id": "683953b3",
|
"id": "683953b3",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"# SupabaseVectorStore"
|
"# Supabase (Postgres)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -13,7 +13,9 @@
|
|||||||
"id": "cc80fa84-1f2f-48b4-bd39-3e6412f012f1",
|
"id": "cc80fa84-1f2f-48b4-bd39-3e6412f012f1",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
">[Supabase](https://supabase.com/docs) is an open source Firebase alternative.\n",
|
">[Supabase](https://supabase.com/docs) is an open source Firebase alternative. `Supabase` is built on top of `PostgreSQL`, which offers strong SQL querying capabilities and enables a simple interface with already-existing tools and frameworks.\n",
|
||||||
|
"\n",
|
||||||
|
">[PostgreSQL](https://en.wikipedia.org/wiki/PostgreSQL) also known as `Postgres`, is a free and open-source relational database management system (RDBMS) emphasizing extensibility and SQL compliance.\n",
|
||||||
"\n",
|
"\n",
|
||||||
"This notebook shows how to use `Supabase` and `pgvector` as your VectorStore.\n",
|
"This notebook shows how to use `Supabase` and `pgvector` as your VectorStore.\n",
|
||||||
"\n",
|
"\n",
|
||||||
@ -125,21 +127,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": null,
|
||||||
"id": "90afc6df",
|
"id": "90afc6df",
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
"outputs": [
|
"tags": []
|
||||||
{
|
|
||||||
"data": {
|
|
||||||
"text/plain": [
|
|
||||||
"True"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"execution_count": 2,
|
"outputs": [],
|
||||||
"metadata": {},
|
|
||||||
"output_type": "execute_result"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"# If you're storing your Supabase and OpenAI API keys in a .env file, you can load them with dotenv\n",
|
"# If you're storing your Supabase and OpenAI API keys in a .env file, you can load them with dotenv\n",
|
||||||
"from dotenv import load_dotenv\n",
|
"from dotenv import load_dotenv\n",
|
||||||
@ -164,18 +157,12 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 4,
|
"execution_count": 3,
|
||||||
"id": "aac9563e",
|
"id": "aac9563e",
|
||||||
"metadata": {},
|
"metadata": {
|
||||||
"outputs": [
|
"tags": []
|
||||||
{
|
},
|
||||||
"name": "stderr",
|
"outputs": [],
|
||||||
"output_type": "stream",
|
|
||||||
"text": [
|
|
||||||
"2023-04-19 20:12:28,593:INFO - NumExpr defaulting to 8 threads.\n"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain.embeddings.openai import OpenAIEmbeddings\n",
|
"from langchain.embeddings.openai import OpenAIEmbeddings\n",
|
||||||
"from langchain.text_splitter import CharacterTextSplitter\n",
|
"from langchain.text_splitter import CharacterTextSplitter\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user