From a7d4ef3f06bf4c2810a4a2cdb3c11ba7b87a3b2e Mon Sep 17 00:00:00 2001 From: Sami Yaseen Date: Thu, 7 Nov 2024 15:53:01 +0100 Subject: [PATCH] Rename project --- .github/workflows/publish.yml | 2 +- README.md | 6 +++--- examples/basic/llm_with_tools.py | 2 +- examples/basic/requirements.txt | 2 +- examples/chat/chat.py | 6 +++--- examples/chat/requirements.txt | 2 +- pyproject.toml | 12 ++++++------ tests/integration_test.py | 2 +- {langchain_tilores => tilores_langchain}/__init__.py | 0 .../tilores_tools.py | 0 10 files changed, 17 insertions(+), 17 deletions(-) rename {langchain_tilores => tilores_langchain}/__init__.py (100%) rename {langchain_tilores => tilores_langchain}/tilores_tools.py (100%) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 160ccd3..b8fa36d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest environment: name: pypi - url: https://pypi.org/p/langchain-tilores + url: https://pypi.org/p/tilores-langchain permissions: id-token: write steps: diff --git a/README.md b/README.md index fd1351a..7f64a3f 100644 --- a/README.md +++ b/README.md @@ -8,11 +8,11 @@ for record retrieval, search, and entity resolution. ## Examples -* **Human-in-the-Loop Chat:** [`examples/chat`](https://github.com/tilotech/langchain-tilores/tree/main/examples/chat) +* **Human-in-the-Loop Chat:** [`examples/chat`](https://github.com/tilotech/tilores-langchain/tree/main/examples/chat) This example demonstrates how to build a chat application using Chainlit and LangGraph to explore a Tilores instance through natural language. It guides users through search functionality and explains the search results. -* **Basic Usage:** [`examples/basic`](https://github.com/tilotech/langchain-tilores/tree/main/examples/basic) +* **Basic Usage:** [`examples/basic`](https://github.com/tilotech/tilores-langchain/tree/main/examples/basic) This example shows how to use tools with an LLM model in a basic setup. @@ -20,7 +20,7 @@ for record retrieval, search, and entity resolution. ```python from tilores import TiloresAPI -from langchain_tilores import TiloresTools +from tilores_langchain import TiloresTools from langchain_openai import ChatOpenAI from langchain_core.messages import HumanMessage diff --git a/examples/basic/llm_with_tools.py b/examples/basic/llm_with_tools.py index 12a0f90..aa5a5a1 100644 --- a/examples/basic/llm_with_tools.py +++ b/examples/basic/llm_with_tools.py @@ -1,5 +1,5 @@ from tilores import TiloresAPI -from langchain_tilores import TiloresTools +from tilores_langchain import TiloresTools from langchain_openai import ChatOpenAI from langchain_core.messages import HumanMessage diff --git a/examples/basic/requirements.txt b/examples/basic/requirements.txt index e203985..fd76b7b 100644 --- a/examples/basic/requirements.txt +++ b/examples/basic/requirements.txt @@ -1,3 +1,3 @@ -langchain-tilores[all]>=0.1.0 +tilores-langchain[all]>=0.1.0 langchain_openai diff --git a/examples/chat/chat.py b/examples/chat/chat.py index 9bf284c..0daedf0 100644 --- a/examples/chat/chat.py +++ b/examples/chat/chat.py @@ -19,7 +19,7 @@ # Tilores from tilores import TiloresAPI -from langchain_tilores import TiloresTools +from tilores_langchain import TiloresTools # Chainlit import chainlit as cl @@ -70,7 +70,7 @@ def start(): if os.environ.get("OPENAI_MODEL_NAME"): model_name = os.environ.get("OPENAI_MODEL_NAME") llm = ChatOpenAI(temperature=0, streaming=True, model_name=model_name) - + # Setup a connection to the Tilores instance and provide it as a tool tilores = TiloresAPI.from_environ() tilores_tools = TiloresTools(tilores) @@ -130,7 +130,7 @@ def load_pdf_from_url(url: str): if response.status_code == 200: with tempfile.NamedTemporaryFile(suffix=".pdf", delete=False) as temp_pdf: temp_pdf.write(response.content) - + loader = UnstructuredPDFLoader(temp_pdf.name) documents = loader.load() return documents diff --git a/examples/chat/requirements.txt b/examples/chat/requirements.txt index 751d9c1..48cceec 100644 --- a/examples/chat/requirements.txt +++ b/examples/chat/requirements.txt @@ -1,4 +1,4 @@ -langchain-tilores[all]>=0.3.0 +tilores-langchain[all]>=0.1.0 langgraph==0.2.22 langchain_openai langchain_aws diff --git a/pyproject.toml b/pyproject.toml index 4503b43..f4b8020 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] -name = "langchain-tilores" -version = "0.3.0" +name = "tilores-langchain" +version = "0.1.0" authors = [ { name="Lukas Rieder", email="lukas@parlant.co" }, { name="Stefan Berkner", email="stefan.berkner@tilores.io" }, @@ -8,7 +8,7 @@ authors = [ description = "This package contains tools to work with Tilores entity resolution database within Langchain." readme = "README.md" license = {file = "LICENSE"} -keywords = ["entity-resolution", "tilores", "graph-raq", "langchain", "langchain-tool"] +keywords = ["entity-resolution", "tilores", "graph-raq", "identity-raq", "langchain", "langchain-tool"] requires-python = ">=3.8" classifiers = [ "Programming Language :: Python :: 3", @@ -19,15 +19,15 @@ dependencies = [ "tilores-sdk>=0.3.0", ] [project.optional-dependencies] -all = ["langchain-tilores[langchain]"] +all = ["tilores-langchain[langchain]"] langchain = ["langchain", "openai"] test = [ "pytest==8.3.2", ] [project.urls] -Homepage = "https://github.com/tilotech/langchain-tilores" -Issues = "https://github.com/tilotech/langchain-tilores/issues" +Homepage = "https://github.com/tilotech/tilores-langchain" +Issues = "https://github.com/tilotech/tilores-langchain/issues" [build-system] requires = ["setuptools>=61.0"] diff --git a/tests/integration_test.py b/tests/integration_test.py index 58b9536..5f19530 100644 --- a/tests/integration_test.py +++ b/tests/integration_test.py @@ -1,6 +1,6 @@ import unittest from tilores import TiloresAPI -from langchain_tilores import TiloresTools +from tilores_langchain import TiloresTools class IntegrationTest(unittest.TestCase): """ diff --git a/langchain_tilores/__init__.py b/tilores_langchain/__init__.py similarity index 100% rename from langchain_tilores/__init__.py rename to tilores_langchain/__init__.py diff --git a/langchain_tilores/tilores_tools.py b/tilores_langchain/tilores_tools.py similarity index 100% rename from langchain_tilores/tilores_tools.py rename to tilores_langchain/tilores_tools.py