8000 Tags · salimwp/langchain · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Tags: salimwp/langchain

Tags

v0.1.1

Toggle v0.1.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
docs: tool-use use case (langchain-ai#15783)

Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>

v0.1.0

Toggle v0.1.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
infra: fix langchain openai test dep (langchain-ai#15620)

v0.0.354

Toggle v0.0.354's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
langchain[patch]: bump community >=0.0.8,<0.1 (langchain-ai#15492)

v0.0.353

Toggle v0.0.353's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
langchain[patch]: Release 0.0.353 (langchain-ai#15322)

v0.0.352

Toggle v0.0.352's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
langchain[patch]: Release 0.0.352 (langchain-ai#14961)

v0.0.351

Toggle v0.0.351's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
add methods to deserialize prompts that were old (langchain-ai#14857)

v0.0.350

Toggle v0.0.350's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
langchain[patch]: Release 0.0.350 (langchain-ai#14612)

v0.0.349

Toggle v0.0.349's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
langchain[patch]: Release 0.0.349 (langchain-ai#14570)

v0.0.349-rc.2

Toggle v0.0.349-rc.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
docs[patch]: `google` platform page update (langchain-ai#14475)

Added missed tools

---------

Co-authored-by: Erick Friis <erickfriis@gmail.com>

v0.0.349-rc.1

Toggle v0.0.349-rc.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
experimental[patch]: SmartLLMChain Output Key Customization (langchai…

…n-ai#14466)

**Description**
The `SmartLLMChain` was was fixed to output key "resolution".
Unfortunately, this prevents the ability to use multiple `SmartLLMChain`
in a `SequentialChain` because of colliding output keys. This change
simply gives the option the customize the output key to allow for
sequential chaining. The default behavior is the same as the current
behavior.

Now, it's possible to do the following:
```
from langchain.chat_models import ChatOpenAI
from langchain.prompts import PromptTemplate
from langchain_experimental.smart_llm import SmartLLMChain
from langchain.chains import SequentialChain

joke_prompt = PromptTemplate(
    input_variables=["content"],
    template="Tell me a joke about {content}.",
)
review_prompt = PromptTemplate(
    input_variables=["scale", "joke"],
    template="Rate the following joke from 1 to {scale}: {joke}"
)

llm = ChatOpenAI(temperature=0.9, model_name="gpt-4-32k")
joke_chain = SmartLLMChain(llm=llm, prompt=joke_prompt, output_key="joke")
review_chain = SmartLLMChain(llm=llm, prompt=review_prompt, output_key="review")

chain = SequentialChain(
    chains=[joke_chain, review_chain],
    input_variables=["content", "scale"],
    output_variables=["review"],
    verbose=True
)
response = chain.run({"content": "chickens", "scale": "10"})
print(response)
```

---------

Co-authored-by: Erick Friis <erick@langchain.dev>
0