You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
langchain/libs/experimental/langchain_experimental
Tomaz Bratanic d166967003
experimental: Add gliner graph transformer (#25066)
You can use this with:

```
from langchain_experimental.graph_transformers import GlinerGraphTransformer
gliner = GlinerGraphTransformer(allowed_nodes=["Person", "Organization", "Nobel"], allowed_relationships=["EMPLOYEE", "WON"])

from langchain_core.documents import Document

text = """
Marie Curie, was a Polish and naturalised-French physicist and chemist who conducted pioneering research on radioactivity.
She was the first woman to win a Nobel Prize, the first person to win a Nobel Prize twice, and the only person to win a Nobel Prize in two scientific fields.
Her husband, Pierre Curie, was a co-winner of her first Nobel Prize, making them the first-ever married couple to win the Nobel Prize and launching the Curie family legacy of five Nobel Prizes.
She was, in 1906, the first woman to become a professor at the University of Paris.
"""
documents = [Document(page_content=text)]

gliner.convert_to_graph_documents(documents)
```

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
2 months ago
..
agents docs: fix kwargs docstring (#25010) 2 months ago
autonomous_agents infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
chat_models infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
comprehend_moderation infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
cpal infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
data_anonymizer infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
fallacy_removal infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
generative_agents patch[experimental] Fix prompt in `GenerativeAgentMemory` (#24771) 2 months ago
graph_transformers experimental: Add gliner graph transformer (#25066) 2 months ago
llm_bash infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
llm_symbolic_math infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
llms deprecating ollama_functions (#24632) 2 months ago
open_clip infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
openai_assistant Move OAI assistants to langchain and add callbacks (#13236) 10 months ago
pal_chain experimental[patch]: block a few more things from PALValidator (#24379) 2 months ago
plan_and_execute infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
prompt_injection_identifier infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
prompts infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
pydantic_v1 `poetry lock` the experimental package. (#9478) 1 year ago
recommenders infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
retrievers langchain: `callbacks` imports fix (#20348) 5 months ago
rl_chain infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
smart_llm infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
sql infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
synthetic_data infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
tabular_synthetic_data docs: fix kwargs docstring (#25010) 2 months ago
tools infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
tot infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
utilities infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
video_captioning infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago
__init__.py Add version to langchain_experimental (#11613) 12 months ago
py.typed Add `py.typed` file to `langchain-experimental`. (#9557) 1 year ago
text_splitter.py infra: update mypy 1.10, ruff 0.5 (#23721) 3 months ago