This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def split_markdown_document(text, target_min=500, target_max=700): | |
| # Identify headers and their levels | |
| header_pattern = re.compile(r'^(#+)\s+(.*)', re.MULTILINE) | |
| headers = [(m.start(), len(m.group(1)), m.group(2)) for m in re.finditer(header_pattern, text)] | |
| # Add sentinel header at the end | |
| headers.append((len(text), 0, "")) | |
| # If no real headers found (other than sentinel), treat entire doc as one big chunk | |
| real_headers = [h for h in headers if h[1] > 0] | |
| if not real_headers: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| summary notes and more |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %load_ext autoreload | |
| %autoreload 2 | |
| # Summarizer | |
| from langchain.chat_models import ChatOpenAI, AzureChatOpenAI | |
| from langchain.text_splitter import RecursiveCharacterTextSplitter | |
| from langchain.prompts import ChatPromptTemplate | |
| from langchain.document_loaders import ArxivLoader |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ... |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AdaVAE: Exploring Adaptive GPT-2s in Variational Auto-Encoders for Language Modeling | |
| Cut the CARP: Fishing for zero-shot story evaluation | |
| LLoCO: Learning Long Contexts Offline | |
| Ferret-v2: An Improved Baseline for Referring and Grounding with Large Language Models | |
| OSWorld: Benchmarking Multimodal Agents for Open-Ended Tasks in Real Computer Environments | |
| Rho-1: Not All Tokens Are What You Need | |
| RecurrentGemma: Moving Past Transformers for Efficient Open Language Models | |
| Audio Dialogues: Dialogues dataset for audio and music understanding | |
| From Words to Numbers: Your Large Language Model Is Secretly A Capable Regressor When Given In-Context Examples | |
| JetMoE: Reaching Llama2 Performance with 0.1M Dollars |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tz1ZWje5jpfbWrG5iuxz7qUx7eBLLAS5Tv3z,0x10,all | |
| tz1eZv3NVo44c2LJ78pKUKabFUZABemX3QMN,256x256,all | |
| tz1Sqhrj49cW9aTuwQrDa4mycnA7n5dDd7rF,abosch,all | |
| tz1ZBMhTa7gxSpaeXoqyc6bTCrxEHfZYSpPt,aebrer,all | |
| tz1h3Cz9aMM6aiNbfPhybev6o9KCfY8geaPd,alexandrajovanic,all | |
| tz1St3n29AbYXZXV8W1BG41qYzz86J2CFAW7,alexthescott,all | |
| tz2DFJE6jVMobNWzJMXtJG2YXJZUgE5JxRC8,also celador,all | |
| tz1XQBiuYpkx3s9nF49D9HE2pbC3DUNnKZHJ,amit pitaru,all | |
| tz1Z2kdYtxZ6YAYyCTYZUmEwvXJbdjN7mdzs,amy goodchild,all | |
| tz1Roq6end2LFtkpGrmuyRZH82xsWfaRCat1,andreasrau,all |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tz1ZWje5jpfbWrG5iuxz7qUx7eBLLAS5Tv3z # 0x10 | |
| tz1eZv3NVo44c2LJ78pKUKabFUZABemX3QMN # 256x256 | |
| tz1Sqhrj49cW9aTuwQrDa4mycnA7n5dDd7rF # abosch | |
| tz1ZBMhTa7gxSpaeXoqyc6bTCrxEHfZYSpPt # aebrer | |
| tz1eYu9mJo9P4NXogtcisVnjGGnPp4pb4tTm # aj amos | |
| tz1h3Cz9aMM6aiNbfPhybev6o9KCfY8geaPd # alexandrajovanic | |
| tz1St3n29AbYXZXV8W1BG41qYzz86J2CFAW7 # alexthescott | |
| tz2DFJE6jVMobNWzJMXtJG2YXJZUgE5JxRC8 # also celador | |
| tz1XQBiuYpkx3s9nF49D9HE2pbC3DUNnKZHJ # amit pitaru | |
| tz1Z2kdYtxZ6YAYyCTYZUmEwvXJbdjN7mdzs # amy goodchild |