langchain-cloudflare 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2024 LangChain, Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,67 @@
1
+ Metadata-Version: 2.3
2
+ Name: langchain-cloudflare
3
+ Version: 0.1.0
4
+ Summary: An integration package connecting CloudflareVectorize and LangChain
5
+ License: MIT
6
+ Requires-Python: >=3.9,<4.0
7
+ Classifier: License :: OSI Approved :: MIT License
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.9
10
+ Classifier: Programming Language :: Python :: 3.10
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Programming Language :: Python :: 3.12
13
+ Classifier: Programming Language :: Python :: 3.13
14
+ Requires-Dist: httpx (>=0.28.1,<0.29.0)
15
+ Requires-Dist: langchain-core (>=0.3.15,<0.4.0)
16
+ Requires-Dist: requests (>=2.32.3,<3.0.0)
17
+ Project-URL: Repository, https://github.com/langchain-ai/langchain
18
+ Project-URL: Release Notes, https://github.com/langchain-ai/langchain/releases?q=tag%3A%22cloudflare-vectorize%3D%3D0%22&expanded=true
19
+ Project-URL: Source Code, https://github.com/langchain-ai/langchain/tree/master/libs/partners/cloudflare-vectorize
20
+ Description-Content-Type: text/markdown
21
+
22
+ # langchain-cloudflare
23
+
24
+ This package contains the LangChain integration with CloudflareVectorize
25
+
26
+ ## Installation
27
+
28
+ ```bash
29
+ pip install -U langchain-cloudflare
30
+ ```
31
+
32
+ And you should configure credentials by setting the following environment variables:
33
+
34
+ * TODO: fill this out
35
+
36
+ ## Chat Models
37
+
38
+ `ChatCloudflareVectorize` class exposes chat models from CloudflareVectorize.
39
+
40
+ ```python
41
+ from langchain_cloudflare_vectorize import ChatCloudflareVectorize
42
+
43
+ llm = ChatCloudflareVectorize()
44
+ llm.invoke("Sing a ballad of LangChain.")
45
+ ```
46
+
47
+ ## Embeddings
48
+
49
+ `CloudflareVectorizeEmbeddings` class exposes embeddings from CloudflareVectorize.
50
+
51
+ ```python
52
+ from langchain_cloudflare_vectorize import CloudflareVectorizeEmbeddings
53
+
54
+ embeddings = CloudflareVectorizeEmbeddings()
55
+ embeddings.embed_query("What is the meaning of life?")
56
+ ```
57
+
58
+ ## LLMs
59
+ `CloudflareVectorizeLLM` class exposes LLMs from CloudflareVectorize.
60
+
61
+ ```python
62
+ from langchain_cloudflare_vectorize import CloudflareVectorizeLLM
63
+
64
+ llm = CloudflareVectorizeLLM()
65
+ llm.invoke("The meaning of life is")
66
+ ```
67
+
@@ -0,0 +1,45 @@
1
+ # langchain-cloudflare
2
+
3
+ This package contains the LangChain integration with CloudflareVectorize
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ pip install -U langchain-cloudflare
9
+ ```
10
+
11
+ And you should configure credentials by setting the following environment variables:
12
+
13
+ * TODO: fill this out
14
+
15
+ ## Chat Models
16
+
17
+ `ChatCloudflareVectorize` class exposes chat models from CloudflareVectorize.
18
+
19
+ ```python
20
+ from langchain_cloudflare_vectorize import ChatCloudflareVectorize
21
+
22
+ llm = ChatCloudflareVectorize()
23
+ llm.invoke("Sing a ballad of LangChain.")
24
+ ```
25
+
26
+ ## Embeddings
27
+
28
+ `CloudflareVectorizeEmbeddings` class exposes embeddings from CloudflareVectorize.
29
+
30
+ ```python
31
+ from langchain_cloudflare_vectorize import CloudflareVectorizeEmbeddings
32
+
33
+ embeddings = CloudflareVectorizeEmbeddings()
34
+ embeddings.embed_query("What is the meaning of life?")
35
+ ```
36
+
37
+ ## LLMs
38
+ `CloudflareVectorizeLLM` class exposes LLMs from CloudflareVectorize.
39
+
40
+ ```python
41
+ from langchain_cloudflare_vectorize import CloudflareVectorizeLLM
42
+
43
+ llm = CloudflareVectorizeLLM()
44
+ llm.invoke("The meaning of life is")
45
+ ```
@@ -0,0 +1,27 @@
1
+ from importlib import metadata
2
+
3
+ from langchain_cloudflare_vectorize.chat_models import ChatCloudflareVectorize
4
+ from langchain_cloudflare_vectorize.document_loaders import CloudflareVectorizeLoader
5
+ from langchain_cloudflare_vectorize.embeddings import CloudflareVectorizeEmbeddings
6
+ from langchain_cloudflare_vectorize.retrievers import CloudflareVectorizeRetriever
7
+ from langchain_cloudflare_vectorize.toolkits import CloudflareVectorizeToolkit
8
+ from langchain_cloudflare_vectorize.tools import CloudflareVectorizeTool
9
+ from langchain_cloudflare_vectorize.vectorstores import CloudflareVectorizeVectorStore
10
+
11
+ try:
12
+ __version__ = metadata.version(__package__)
13
+ except metadata.PackageNotFoundError:
14
+ # Case where package metadata is not available.
15
+ __version__ = ""
16
+ del metadata # optional, avoids polluting the results of dir(__package__)
17
+
18
+ __all__ = [
19
+ "ChatCloudflareVectorize",
20
+ "CloudflareVectorizeVectorStore",
21
+ "CloudflareVectorizeEmbeddings",
22
+ "CloudflareVectorizeLoader",
23
+ "CloudflareVectorizeRetriever",
24
+ "CloudflareVectorizeToolkit",
25
+ "CloudflareVectorizeTool",
26
+ "__version__",
27
+ ]