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/tests/unit_tests
Waldecir Santos db45970a66
Fix SQLAlchemy truncating text when it is too big (#5206)
# Fixes SQLAlchemy truncating the result if you have a big/text column
with many chars.

SQLAlchemy truncates columns if you try to convert a Row or Sequence to
a string directly

For comparison:

- Before:
```[('Harrison', 'That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio ... (2 characters truncated) ... hat is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio That is my Bio ')]```

- After:
```[('Harrison', 'That is my Bio That is my Bio That is my Bio That is
my Bio That is my Bio That is my Bio That is my Bio That is my Bio That
is my Bio That is my Bio That is my Bio That is my Bio That is my Bio
That is my Bio That is my Bio That is my Bio That is my Bio That is my
Bio That is my Bio That is my Bio ')]```



## Who can review?

Community members can review the PR once tests pass. Tag
maintainers/contributors who might be interested:

I'm not sure who to tag for chains, maybe @vowelparrot ?
1 year ago
..
agents MRKL output parser no longer breaks well formed queries (#5432) 1 year ago
callbacks py tracer fixes (#5377) 1 year ago
chains Callbacks Refactor [base] (#3256) 1 year ago
chat_models Add ChatModel, LLM, and Embeddings for Google's PaLM APIs (#3575) 1 year ago
client Separate Runner Functions from Client (#5079) 1 year ago
data Prompt from file proof of concept using plain text (#127) 2 years ago
docstore Add `DocstoreFn` - lookup doc via arbitrary function (#3760) 1 year ago
document_loaders DocumentLoader for GitHub (#5408) 1 year ago
evaluation Adding an in-context QA evaluation chain + chain of thought reasoning chain for improved accuracy (#2444) 2 years ago
examples feat #4479: TextLoader auto detect encoding and improved exceptions (#4927) 1 year ago
llms Add Invocation Params (#4509) 1 year ago
memory Implemented appending arbitrary messages (#5293) 1 year ago
output_parsers convert the parameter 'text' to uppercase in the function 'parse' of the class BooleanOutputParser (#5397) 1 year ago
prompts fix prompt saving (#4987) 1 year ago
retrievers tfidf retriever (#5114) 1 year ago
tools add brave search util (#5538) 1 year ago
utilities Fix graphql tool (#4984) 1 year ago
vectorstores Add maximal relevance search to SKLearnVectorStore (#5430) 1 year ago
__init__.py initial commit 2 years ago
conftest.py Add pytest --only-extended and --only-core options (#4494) 1 year ago
test_bash.py Add Mastodon toots loader (#5036) 1 year ago
test_depedencies.py add simple test for imports (#5461) 1 year ago
test_document_transformers.py Contextual compression retriever (#2915) 1 year ago
test_formatting.py initial commit 2 years ago
test_math_utils.py add get_top_k_cosine_similarity method to get max top k score and index (#5059) 1 year ago
test_pytest_config.py Block sockets for unit-tests (#4803) 1 year ago
test_python.py option for csv agent to not include df in prompt (#4610) 1 year ago
test_schema.py [simple][test] Added test case for schema.py (#3692) 1 year ago
test_sql_database.py Fix SQLAlchemy truncating text when it is too big (#5206) 1 year ago
test_sql_database_schema.py Suppress duckdb warning in unit tests explicitly (#3653) 1 year ago
test_text_splitter.py code splitter docs (#5480) 1 year ago