mbchang

Results 17 issues of mbchang

# Run Python REPL in Docker Container Fixes # (issue) ## Before submitting Still a draft. Did not add tests yet. ## Who can review? Community members can review the...

# Assign `current_time` to `datetime.now()` if it `current_time is None` in `time_weighted_retriever` Fixes #4825 As implemented, `add_documents` in `TimeWeightedVectorStoreRetriever` assigns `doc.metadata["last_accessed_at"]` and `doc.metadata["created_at"]` to `datetime.datetime.now()` if `current_time` is not in...

# remove empty lines in GenerativeAgentMemory that cause InvalidRequestError in OpenAIEmbeddings Let's say the text given to `GenerativeAgent._parse_list` is ``` text = """ Insight 1: Insight 2: """ ``` This...

# minor refactor of GenerativeAgentMemory - refactor `format_memories_detail` to be more reusable - modified prompts for getting topics for reflection and for generating insights - update `characters.ipynb` to reflect changes...

# like [StdoutCallbackHandler](https://github.com/hwchase17/langchain/blob/master/langchain/callbacks/stdout.py), but writes to a file When running experiments I have found myself wanting to log the outputs of my chains in a more lightweight way than using...

I would like to use an instance method for the `retry_error_callback` as follows: ``` def MyClass(): def __init__(self): self.state = 0 def my_callback(self, retry_state): self.state += 1 print(self.state) @tenacity.retry(stop=tenacity.stop_after_attempt(2), wait=tenacity.wait_none(),...

On line 10 of Algorithm 1 (FlashAttention-2 forward pass) of the [Flash Attention 2 paper](https://arxiv.org/pdf/2307.08691) it says ![image](https://github.com/Dao-AILab/flash-attention/assets/6439365/0c646c47-6f1e-4a60-a943-a15b58c825ff) However, $\text{diag}\left(e^{m_i^{j-1} - m_i^{j}}\right)^{-1}\mathbf{O}_i^{(j-1)}$ should not have the $^{-1}$ and actually just...