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/langchain
SvMax 92b87c2fec
added support for different types in ResponseSchema class (#5789)
I added support for specifing different types with ResponseSchema
objects:

## before
`
extracted_info = ResponseSchema(name="extracted_info", description="List
of extracted information")
`
generate the following doc: ```json\n{\n\t\"extracted_info\": string //
List of extracted information}```
This brings GPT to create a JSON with only one string in the specified
field even if you requested a List in the description.

## now
`extracted_info = ResponseSchema(name="extracted_info",
type="List[string]", description="List of extracted information")
`
generate the following doc: ```json\n{\n\t\"extracted_info\":
List[string] // List of extracted information}```
This way the model responds better to the prompt generating an array of
strings.

Tag maintainers/contributors who might be interested:
  Agents / Tools / Toolkits
  @vowelparrot

Don't know who can be interested, I suppose this is a tool, so I tagged
you vowelparrot,
anyway, it's a minor change, and shouldn't impact any other part of the
framework.
1 year ago
..
agents Raise an exception in MKRL and Chat Output Parsers if parsing text which contains both an action and a final answer (#5609) 1 year ago
callbacks Add UTF-8 json ouput support while langchain.debug is set to True. (#5802) 1 year ago
chains support returning run info for llms, chat models and chains (#5666) 1 year ago
chat_models WIP: openai settings (#5792) 1 year ago
client Use client from LCP-SDK (#5695) 1 year ago
docstore changed ValueError to ImportError (#5006) 1 year ago
document_loaders YoutubeAudioLoader and updates to OpenAIWhisperParser (#5772) 1 year ago
embeddings WIP: openai settings (#5792) 1 year ago
evaluation Base RunEvaluator Chain (#5750) 1 year ago
experimental Base RunEvaluator Chain (#5750) 1 year ago
graphs Improve Error Messaging for APOC Procedure Failure in Neo4jGraph (#5547) 1 year ago
indexes Create async copy of from_text() inside GraphIndexCreator. (#5214) 1 year ago
llms WIP: openai settings (#5792) 1 year ago
memory Zep Hybrid Search (#5742) 1 year ago
output_parsers added support for different types in ResponseSchema class (#5789) 1 year ago
prompts Harrison/pipeline prompt (#5540) 1 year ago
retrievers Zep Hybrid Search (#5742) 1 year ago
tools Add args_schema to google_places tool (#5680) 1 year ago
utilities Harrison/pubmed integration (#5664) 1 year ago
vectorstores fixing from_documents method of the MongoDB Atlas vector store (#5794) 1 year ago
__init__.py console callback verbose (#4696) 1 year ago
base_language.py Add async versions of predict() and predict_messages() (#4867) 1 year ago
cache.py feat: add Momento as a standard cache and chat message history provider (#5221) 1 year ago
docker-compose.yaml Update docker-compose.yaml (#3582) 1 year ago
document_transformers.py Contextual compression retriever (#2915) 1 year ago
env.py Add Environment Info to Run (#4691) 1 year ago
example_generator.py Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
formatting.py Validate `input_variables` when using `jinja2` templates (#3140) 1 year ago
input.py FileCallbackHandler (#5589) 1 year ago
math_utils.py add get_top_k_cosine_similarity method to get max top k score and index (#5059) 1 year ago
model_laboratory.py Harrison/improve cache (#368) 2 years ago
py.typed Add py.typed marker to package (#121) 2 years ago
python.py Move PythonRepl -> langchain.utilities (#2917) 1 year ago
requests.py fixed aiohttp.client_exceptions.ClientConnectionError: Connection closed (#2718) 2 years ago
schema.py support returning run info for llms, chat models and chains (#5666) 1 year ago
serpapi.py move serpapi wrapper (#1199) 2 years ago
server.py Update Tracing Walkthrough (#4760) 1 year ago
sql_database.py Revise DATABRICKS_API_TOKEN as DATABRICKS_TOKEN (#5796) 1 year ago
text_splitter.py Attribute support for html tags (#5782) 1 year ago
utils.py feat(integrations): Add WandbTracer (#4521) 1 year ago