Skip to content

Commit

Permalink
Merge pull request #1 from tilotech/rename-project
Browse files Browse the repository at this point in the history
Rename project
  • Loading branch information
sami-yaseen-tilotech authored Nov 7, 2024
2 parents ae9bbed + a7d4ef3 commit 8dc6385
Show file tree
Hide file tree
Showing 10 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,19 @@ 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.

## Usage

```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

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/llm_with_tools.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion examples/basic/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
langchain-tilores[all]>=0.1.0
tilores-langchain[all]>=0.1.0
langchain_openai

6 changes: 3 additions & 3 deletions examples/chat/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

# Tilores
from tilores import TiloresAPI
from langchain_tilores import TiloresTools
from tilores_langchain import TiloresTools

# Chainlit
import chainlit as cl
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
langchain-tilores[all]>=0.3.0
tilores-langchain[all]>=0.1.0
langgraph==0.2.22
langchain_openai
langchain_aws
Expand Down
12 changes: 6 additions & 6 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[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" },
]
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",
Expand All @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion tests/integration_test.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import unittest
from tilores import TiloresAPI
from langchain_tilores import TiloresTools
from tilores_langchain import TiloresTools

class IntegrationTest(unittest.TestCase):
"""
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8dc6385

Please sign in to comment.