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
mbchang b1b7f3541c
fix: fix current_time=Now bug for aadd_documents in TimeWeightedRetriever (#5155)
# Same as PR #5045, but for async

<!--
Thank you for contributing to LangChain! Your PR will appear in our next
release under the title you set. Please make sure it highlights your
valuable contribution.

Replace this with a description of the change, the issue it fixes (if
applicable), and relevant context. List any dependencies required for
this change.

After you're done, someone will review your PR. They may suggest
improvements. If no one reviews your PR within a few days, feel free to
@-mention the same people again, as notifications can get lost.
-->

<!-- Remove if not applicable -->

Fixes #4825 

I had forgotten to update the asynchronous counterpart `aadd_documents`
with the bug fix from PR #5045, so this PR also fixes `aadd_documents`
too.

## Who can review?

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

<!-- For a quicker response, figure out the right person to tag with @

        @hwchase17 - project lead

        Tracing / Callbacks
        - @agola11

        Async
        - @agola11

        DataLoaders
        - @eyurtsev

        Models
        - @hwchase17
        - @agola11

        Agents / Tools / Toolkits
        - @vowelparrot
        
        VectorStores / Retrievers / Memory
        - @dev2049
        
 -->
1 year ago
..
agents Add AzureCognitiveServicesToolkit to call Azure Cognitive Services API (#5012) 1 year ago
callbacks Empty check before pop (#4929) 1 year ago
chains changed ValueError to ImportError (#5103) 1 year ago
chat_models Add async versions of predict() and predict_messages() (#4867) 1 year ago
cli update langchainplus client and docker file to reflect port changes (#5005) 1 year ago
client Pass Dataset Name by Name not Position (#5108) 1 year ago
docstore changed ValueError to ImportError (#5006) 1 year ago
document_loaders Adding Weather Loader (#5056) 1 year ago
embeddings Add MosaicML inference endpoints (#4607) 1 year ago
evaluation Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
experimental Improve PlanningOutputParser whitespace handling (#5143) 1 year ago
graphs changed ValueError to ImportError (#5103) 1 year ago
indexes Replace remaining usage of basellm with baselangmodel (#3981) 1 year ago
llms Add async versions of predict() and predict_messages() (#4867) 1 year ago
memory changed ValueError to ImportError (#5103) 1 year ago
output_parsers Harrison/json new line (#4646) 1 year ago
prompts fix prompt saving (#4987) 1 year ago
retrievers fix: fix current_time=Now bug for aadd_documents in TimeWeightedRetriever (#5155) 1 year ago
tools Add AzureCognitiveServicesToolkit to call Azure Cognitive Services API (#5012) 1 year ago
utilities Adding Weather Loader (#5056) 1 year ago
vectorstores Fixes issue #5072 - adds additional support to Weaviate (#5085) 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 changed ValueError to ImportError (#5103) 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 Bold Crumbs (#4876) 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) 1 year ago
schema.py Improving Resilience of MRKL Agent (#5014) 1 year ago
serpapi.py move serpapi wrapper (#1199) 2 years ago
server.py Update Tracing Walkthrough (#4760) 1 year ago
sql_database.py Support Databricks in SQLDatabase (#4702) 1 year ago
text_splitter.py Improve effeciency of TextSplitter.split_documents, iterate once (#5111) 1 year ago
utils.py Harrison/virtual time (#4658) 1 year ago