mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-23 11:30:37 +00:00
Update coherence.ipynb
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
{
|
{
|
||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "raw",
|
||||||
"id": "c92e2cb6-d75b-4321-bf73-69b07d244aa7",
|
"id": "a33fe9a9-1e91-4e74-af40-e20e197c1294",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"# Coherence\n",
|
"# Coherence\n",
|
||||||
@@ -13,8 +13,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "raw",
|
||||||
"id": "77db1e62-622e-46c1-8f1d-4f32a42f22da",
|
"id": "f83deacd-0838-4753-8e52-5137d9996ff6",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## Setup\n",
|
"## Setup\n",
|
||||||
@@ -27,8 +27,8 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "raw",
|
||||||
"id": "a266cffc-0407-4fd3-b905-f42b0770125c",
|
"id": "e334767c-0770-4eab-ba05-0b0fa6034040",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"## Usage\n",
|
"## Usage\n",
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
"Before using LangChain's CoherenceVectorStore you must ensure that a Coherence server ([Coherence CE](https://github.com/oracle/coherence) 25.03+ or [Oracle Coherence](https://www.oracle.com/java/coherence/) 14.1.2+) is running \n",
|
"Before using LangChain's CoherenceVectorStore you must ensure that a Coherence server ([Coherence CE](https://github.com/oracle/coherence) 25.03+ or [Oracle Coherence](https://www.oracle.com/java/coherence/) 14.1.2+) is running \n",
|
||||||
"\n",
|
"\n",
|
||||||
"For local development, we recommend using the Coherence CE container image:\n",
|
"For local development, we recommend using the Coherence CE container image:\n",
|
||||||
"```aiignore\n",
|
"```\n",
|
||||||
"docker run -d -p 1408:1408 ghcr.io/oracle/coherence-ce:25.03.2\n",
|
"docker run -d -p 1408:1408 ghcr.io/oracle/coherence-ce:25.03.2\n",
|
||||||
"```\n",
|
"```\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -44,9 +44,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "raw",
|
"cell_type": "code",
|
||||||
"id": "1e432d99-4750-48b6-a5f9-e8680f9832e9",
|
"execution_count": null,
|
||||||
|
"id": "d52c0187-f5c4-4c69-9052-0b8998945680",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_core.documents import Document\n",
|
"from langchain_core.documents import Document\n",
|
||||||
"from langchain_core.embeddings import Embeddings\n",
|
"from langchain_core.embeddings import Embeddings\n",
|
||||||
@@ -87,9 +89,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "code",
|
||||||
"id": "97e0d922-7208-46be-bade-71f56ce8c586",
|
"execution_count": null,
|
||||||
|
"id": "11328dac-633e-4155-8f19-95ef2bfa3d06",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_core.documents import Document\n",
|
"from langchain_core.documents import Document\n",
|
||||||
"from langchain_core.embeddings import Embeddings\n",
|
"from langchain_core.embeddings import Embeddings\n",
|
||||||
@@ -187,9 +191,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "raw",
|
"cell_type": "code",
|
||||||
"id": "9713d8bc-db9d-46e7-9fec-2613c2635ad7",
|
"execution_count": null,
|
||||||
|
"id": "dbb07be8-b13e-4bd5-a9ea-94603ff2a6e4",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
"source": [
|
"source": [
|
||||||
"from langchain_core.documents import Document\n",
|
"from langchain_core.documents import Document\n",
|
||||||
"from langchain_core.embeddings import Embeddings\n",
|
"from langchain_core.embeddings import Embeddings\n",
|
||||||
|
Reference in New Issue
Block a user