Skip to content

The agent engineering platform.

DOCS: move `adapters` to integrations (#13862)

Leonid Ganelinee47b9c528587
diff --git a/docs/docs/guides/adapters/_category_.yml b/docs/docs/integrations/adapters/_category_.yml
similarity index 100%
rename from docs/docs/guides/adapters/_category_.yml
rename to docs/docs/integrations/adapters/_category_.yml
diff --git a/docs/docs/guides/adapters/openai.ipynb b/docs/docs/integrations/adapters/openai.ipynb
similarity index 93%
rename from docs/docs/guides/adapters/openai.ipynb
rename to docs/docs/integrations/adapters/openai.ipynb
index fd9cf4bac2..8fd2c5214c 100644
--- a/docs/docs/guides/adapters/openai.ipynb
+++ b/docs/docs/integrations/adapters/openai.ipynb
@@ -49,18 +49,6 @@
"Original OpenAI call"
]
},
- {
- "cell_type": "code",
- "execution_count": 14,
- "id": "e1d27dfa",
- "metadata": {},
- "outputs": [],
- "source": [
- "result = openai.ChatCompletion.create(\n",
- " messages=messages, model=\"gpt-3.5-turbo\", temperature=0\n",
- ")"
- ]
- },
{
"cell_type": "code",
"execution_count": 15,
@@ -79,6 +67,9 @@
}
],
"source": [
+ "result = openai.ChatCompletion.create(\n",
+ " messages=messages, model=\"gpt-3.5-turbo\", temperature=0\n",
+ ")\n",
"result[\"choices\"][0][\"message\"].to_dict_recursive()"
]
},
@@ -90,18 +81,6 @@
"LangChain OpenAI wrapper call"
]
},
- {
- "cell_type": "code",
- "execution_count": 16,
- "id": "87c2d515",
- "metadata": {},
- "outputs": [],
- "source": [
- "lc_result = lc_openai.ChatCompletion.create(\n",
- " messages=messages, model=\"gpt-3.5-turbo\", temperature=0\n",
- ")"
- ]
- },
{
"cell_type": "code",
"execution_count": 17,
@@ -120,6 +99,9 @@
}
],
"source": [
+ "lc_result = lc_openai.ChatCompletion.create(\n",
+ " messages=messages, model=\"gpt-3.5-turbo\", temperature=0\n",
+ ")\n",
"lc_result[\"choices\"][0][\"message\"]"
]
},
@@ -131,18 +113,6 @@
"Swapping out model providers"
]
},
- {
- "cell_type": "code",
- "execution_count": 18,
- "id": "7a2c011c",
- "metadata": {},
- "outputs": [],
- "source": [
- "lc_result = lc_openai.ChatCompletion.create(\n",
- " messages=messages, model=\"claude-2\", temperature=0, provider=\"ChatAnthropic\"\n",
- ")"
- ]
- },
{
"cell_type": "code",
"execution_count": 19,
@@ -161,6 +131,9 @@
}
],
"source": [
+ "lc_result = lc_openai.ChatCompletion.create(\n",
+ " messages=messages, model=\"claude-2\", temperature=0, provider=\"ChatAnthropic\"\n",
+ ")\n",
"lc_result[\"choices\"][0][\"message\"]"
]
},
@@ -302,7 +275,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.10.1"
+ "version": "3.10.12"
}
},
"nbformat": 4,
diff --git a/docs/sidebars.js b/docs/sidebars.js
index cab6c2e451..f5062b100f 100644
--- a/docs/sidebars.js
+++ b/docs/sidebars.js
@@ -110,6 +110,7 @@ module.exports = {
{ type: "category", label: "Memory", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/memory" }], link: {type: "generated-index", slug: "integrations/memory" }},
{ type: "category", label: "Callbacks", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/callbacks" }], link: {type: "generated-index", slug: "integrations/callbacks" }},
{ type: "category", label: "Chat loaders", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/chat_loaders" }], link: {type: "generated-index", slug: "integrations/chat_loaders" }},
+ { type: "category", label: "Adapters", collapsed: true, items: [{type: "autogenerated", dirName: "integrations/adapters" }], link: {type: "generated-index", slug: "integrations/adapters" }},
],
link: {
type: 'generated-index',
diff --git a/docs/vercel.json b/docs/vercel.json
index 87566d64cc..c7de606721 100644
--- a/docs/vercel.json
+++ b/docs/vercel.json
@@ -2920,6 +2920,10 @@
"source": "/en/latest/modules/memory/examples/cassandra_chat_message_history.html",
"destination": "/docs/integrations/memory/cassandra_chat_message_history"
},
+ {
+ "source": "/docs/guides/adapters/openai",
+ "destination": "/docs/integrations/adapters/openai"
+ },
{
"source": "/docs/modules/memory/integrations/cassandra_chat_message_history",
"destination": "/docs/integrations/memory/cassandra_chat_message_history"