[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"navigation":3,"url-settings":80,"blog-\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length":589,"blog-author-\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length":1002},{"id":4,"extension":5,"footer":6,"header":66,"meta":77,"stem":78,"__hash__":79},"navigation\u002Fdata\u002Fshared\u002Fnavigation.yml","yml",{"brand":7,"columns":10,"legal":56},{"name":8,"tagline":9},"Pieces","The memory layer for modern work.",[11,26,41],{"title":12,"links":13},"Product",[14,17,21,24],{"label":15,"href":16},"Pieces Desktop","\u002Fdownloads",{"label":18,"href":19,"external":20},"Pieces MCP","url:docs.mcp.overview",true,{"label":22,"href":23,"external":20},"Pieces APIs","url:docs.api",{"label":25,"href":16},"Downloads",{"title":27,"links":28},"Resources",[29,32,35,38],{"label":30,"href":31,"external":20},"Documentation","url:docs.home",{"label":33,"href":34},"Blog","\u002Fblog",{"label":36,"href":37},"Changelog","\u002Fchangelog",{"label":39,"href":40,"external":20},"GitHub","url:github.org",{"title":42,"links":43},"Company",[44,47,50,53],{"label":45,"href":46},"About","\u002Fabout",{"label":48,"href":49},"Enterprise","\u002Fenterprise",{"label":51,"href":52,"external":20},"Discord","url:social.discord",{"label":54,"href":55,"external":20},"X \u002F Twitter","url:social.x",[57,60,63],{"label":58,"href":59,"external":20},"Privacy Policy","url:legal.privacyPolicy",{"label":61,"href":62,"external":20},"Refund Policy","url:legal.refundPolicy",{"label":64,"href":65,"external":20},"Terms of Service","url:legal.terms",{"links":67,"signIn":68,"contact":71,"cta":74},[],{"label":69,"href":70},"Sign in","url:portal.home",{"label":72,"href":73},"Contact sales","url:site.contact",{"label":75,"href":76},"Download","url:routes.downloads",{},"data\u002Fshared\u002Fnavigation","Ia8tCWWqcGvuaIro8jwZ3HH-MwI66yqJpWshASJdYQ0",{"id":81,"extension":5,"links":82,"meta":586,"stem":587,"__hash__":588},"urlSettings\u002Fdata\u002Fshared\u002Furls.yml",[83,87,91,95,99,103,107,111,115,119,123,127,131,135,139,143,147,151,155,159,163,167,171,175,179,183,187,191,195,199,203,207,211,215,219,223,227,231,235,238,242,246,249,253,257,261,265,269,273,277,281,285,289,293,297,301,305,309,313,317,321,325,329,333,337,341,345,349,353,357,361,365,369,373,377,381,385,389,393,396,400,404,408,412,416,420,423,426,429,432,436,440,444,448,452,456,460,464,468,472,476,480,484,488,492,495,499,503,507,511,515,519,523,527,531,534,538,542,546,550,553,557,561,565,568,571,575,579,582],{"key":84,"label":85,"href":86},"downloads.desktop","Desktop download page","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fdownload",{"key":88,"label":89,"href":90},"downloads.macOS.dmgArm64","macOS DMG Apple Silicon","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fdmg-arm64\u002Fdownload",{"key":92,"label":93,"href":94},"downloads.macOS.dmgIntel","macOS DMG Intel","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fdmg\u002Fdownload",{"key":96,"label":97,"href":98},"downloads.macOS.pkg","macOS PKG","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fmacos_packaging\u002Fpkg\u002Fdownload",{"key":100,"label":101,"href":102},"downloads.windows.appinstaller","Windows App Installer","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fappinstaller\u002Fpieces_for_x.appinstaller",{"key":104,"label":105,"href":106},"downloads.windows.exe","Windows EXE","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_for_x\u002Fwindows-exe\u002Fdownload",{"key":108,"label":109,"href":110},"downloads.windows.suiteManager","Windows Suite Manager","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fpieces_suite_windows\u002Fappinstaller\u002Fdownload",{"key":112,"label":113,"href":114},"downloads.linux.flatpakRepo","Linux Flatpak repository","https:\u002F\u002Fbuilds.pieces.app\u002Fpieces-flatpak-repo\u002Fpieces-flatpak.flatpakrepo",{"key":116,"label":117,"href":118},"downloads.linux.snapDesktop","Linux Snap Desktop","https:\u002F\u002Fsnapcraft.io\u002Fpieces-for-developers",{"key":120,"label":121,"href":122},"downloads.linux.snapPiecesOS","Linux Snap PiecesOS","https:\u002F\u002Fsnapcraft.io\u002Fpieces-os",{"key":124,"label":125,"href":126},"downloads.piecesOS.macOS.dmgArm64","PiecesOS macOS DMG Apple Silicon","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fdmg-arm64\u002Fdownload",{"key":128,"label":129,"href":130},"downloads.piecesOS.macOS.dmgIntel","PiecesOS macOS DMG Intel","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fdmg\u002Fdownload",{"key":132,"label":133,"href":134},"downloads.piecesOS.windows.appinstaller","PiecesOS Windows App Installer","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fappinstaller\u002Fos_server.appinstaller",{"key":136,"label":137,"href":138},"downloads.piecesOS.windows.exe","PiecesOS Windows EXE","https:\u002F\u002Fbuilds.pieces.app\u002Fstages\u002Fproduction\u002Fos_server\u002Fwindows-exe\u002Fdownload",{"key":140,"label":141,"href":142},"downloads.guides.macOS","macOS installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Fmacos-installation-guide",{"key":144,"label":145,"href":146},"downloads.guides.windows","Windows installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Fwindows-installation-guide",{"key":148,"label":149,"href":150},"downloads.guides.linux","Linux installation guide","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Flinux-installation-guide",{"key":152,"label":153,"href":154},"downloads.guides.piecesOS","PiecesOS manual installation","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Fmanual-installation",{"key":156,"label":157,"href":158},"extensions.chrome","Chrome extension","https:\u002F\u002Fchrome.google.com\u002Fwebstore\u002Fdetail\u002Fpieces-save-code-snippets\u002Figbgibhbfonhmjlechmeefimncpekepm",{"key":160,"label":161,"href":162},"extensions.firefox","Firefox add-on","https:\u002F\u002Faddons.mozilla.org\u002Fen-US\u002Ffirefox\u002Faddon\u002Fpieces-save-code-from-the-web\u002F",{"key":164,"label":165,"href":166},"extensions.edge","Edge add-on","https:\u002F\u002Fmicrosoftedge.microsoft.com\u002Faddons\u002Fdetail\u002Fpieces-save-code-snippet\u002Fhglfimcdgonaeeobjckfdabcldfidmim",{"key":168,"label":169,"href":170},"extensions.vscode","VS Code extension","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=MeshIntelligentTechnologiesInc.pieces-vscode",{"key":172,"label":173,"href":174},"extensions.visualStudio","Visual Studio extension","https:\u002F\u002Fmarketplace.visualstudio.com\u002Fitems?itemName=MeshIntelligentTechnologiesInc.PiecesVisualStudio",{"key":176,"label":177,"href":178},"extensions.jetbrains","JetBrains plugin","https:\u002F\u002Fplugins.jetbrains.com\u002Fplugin\u002F17328-pieces--save-search-share--reuse-code-snippets",{"key":180,"label":181,"href":182},"extensions.obsidian","Obsidian plugin","https:\u002F\u002Fobsidian.md\u002Fplugins?id=pieces-for-developers",{"key":184,"label":185,"href":186},"extensions.sublime","Sublime package","https:\u002F\u002Fpackagecontrol.io\u002Fpackages\u002FPieces",{"key":188,"label":189,"href":190},"extensions.neovim","Neovim plugin","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_neo_vim",{"key":192,"label":193,"href":194},"extensions.jupyterlab","JupyterLab plugin","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fjupyterlab-pieces",{"key":196,"label":197,"href":198},"extensions.cli","Pieces CLI","https:\u002F\u002Fpypi.org\u002Fproject\u002Fpieces-cli\u002F",{"key":200,"label":201,"href":202},"docs.home","Documentation home","https:\u002F\u002Fdocs.pieces.app",{"key":204,"label":205,"href":206},"docs.getStarted","Get started docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces",{"key":208,"label":209,"href":210},"docs.api","API docs","https:\u002F\u002Fdocs.pieces.app\u002Fapi",{"key":212,"label":213,"href":214},"docs.desktop.overview","Desktop overview","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop",{"key":216,"label":217,"href":218},"docs.desktop.onboarding","Desktop onboarding","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fonboarding",{"key":220,"label":221,"href":222},"docs.desktop.timeline","Desktop timeline docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Ftimeline",{"key":224,"label":225,"href":226},"docs.desktop.summaries","Desktop summaries docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fsingle-click-summaries",{"key":228,"label":229,"href":230},"docs.desktop.search","Desktop conversational search docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fconversational-search",{"key":232,"label":233,"href":234},"docs.desktop.drive","Desktop drive docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fdesktop\u002Fdrive",{"key":236,"label":237,"href":86},"docs.desktop.download","Desktop download docs",{"key":239,"label":240,"href":241},"docs.piecesOS.overview","PiecesOS overview docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies",{"key":243,"label":244,"href":245},"docs.piecesOS.details","PiecesOS details docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os",{"key":247,"label":248,"href":154},"docs.piecesOS.install","PiecesOS install docs",{"key":250,"label":251,"href":252},"docs.piecesOS.quickMenu","PiecesOS quick menu docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Fquick-menu",{"key":254,"label":255,"href":256},"docs.piecesOS.storage","On-device storage docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fon-device-storage",{"key":258,"label":259,"href":260},"docs.piecesOS.troubleshooting","PiecesOS troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fcore-dependencies\u002Fpieces-os\u002Ftroubleshooting",{"key":262,"label":263,"href":264},"docs.mcp.overview","MCP overview docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp",{"key":266,"label":267,"href":268},"docs.mcp.cursor","MCP Cursor docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcursor",{"key":270,"label":271,"href":272},"docs.mcp.vscode","MCP VS Code docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fvs-code",{"key":274,"label":275,"href":276},"docs.mcp.claudeDesktop","MCP Claude Desktop docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-desktop",{"key":278,"label":279,"href":280},"docs.mcp.claudeCode","MCP Claude Code docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-code",{"key":282,"label":283,"href":284},"docs.mcp.claudeCowork","MCP Claude Cowork docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fclaude-cowork",{"key":286,"label":287,"href":288},"docs.mcp.githubCopilot","MCP GitHub Copilot docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgithub-copilot",{"key":290,"label":291,"href":292},"docs.mcp.goose","MCP Goose docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgoose",{"key":294,"label":295,"href":296},"docs.mcp.windsurf","MCP Windsurf docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fwindsurf",{"key":298,"label":299,"href":300},"docs.mcp.zed","MCP Zed docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fzed",{"key":302,"label":303,"href":304},"docs.mcp.jetbrains","MCP JetBrains docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fjetbrains-ides",{"key":306,"label":307,"href":308},"docs.mcp.continueDev","MCP Continue docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcontinue-dev",{"key":310,"label":311,"href":312},"docs.mcp.cline","MCP Cline docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fcline",{"key":314,"label":315,"href":316},"docs.mcp.raycast","MCP Raycast docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fraycast",{"key":318,"label":319,"href":320},"docs.mcp.rovoDevCli","MCP Rovo Dev CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Frovo-dev-cli",{"key":322,"label":323,"href":324},"docs.mcp.openaiCodexCli","MCP OpenAI Codex CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fopenai-codex-cli",{"key":326,"label":327,"href":328},"docs.mcp.googleGeminiCli","MCP Google Gemini CLI docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fgoogle-gemini-cli",{"key":330,"label":331,"href":332},"docs.mcp.amazonQ","MCP Amazon Q docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Famazon-q-developer",{"key":334,"label":335,"href":336},"docs.mcp.chatgptDev","MCP ChatGPT Developer Mode docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fchatgpt-developer-mode",{"key":338,"label":339,"href":340},"docs.mcp.openclaw","MCP OpenClaw docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fopenclaw",{"key":342,"label":343,"href":344},"docs.mcp.mcpRemote","MCP Remote docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fmcp-remote",{"key":346,"label":347,"href":348},"docs.mcp.ngrok","MCP ngrok docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmcp\u002Fngrok-setup",{"key":350,"label":351,"href":352},"docs.troubleshooting.macOS","macOS troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Fmacos",{"key":354,"label":355,"href":356},"docs.troubleshooting.windows","Windows troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Fwindows",{"key":358,"label":359,"href":360},"docs.troubleshooting.linux","Linux troubleshooting docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fmeet-pieces\u002Ftroubleshooting\u002Flinux",{"key":362,"label":363,"href":364},"docs.privacy","Privacy and security docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fprivacy-security-your-data",{"key":366,"label":367,"href":368},"docs.support","Support docs","https:\u002F\u002Fdocs.pieces.app\u002Fproducts\u002Fsupport",{"key":370,"label":371,"href":372},"portal.home","Pieces portal","https:\u002F\u002Fportal.pieces.app",{"key":374,"label":375,"href":376},"site.home","Website home","https:\u002F\u002Fpieces.app",{"key":378,"label":379,"href":380},"site.about","About page","https:\u002F\u002Fpieces.app\u002Fabout",{"key":382,"label":383,"href":384},"site.features","Features page","https:\u002F\u002Fpieces.app\u002Ffeatures",{"key":386,"label":387,"href":388},"site.plugins","Plugins page","https:\u002F\u002Fpieces.app\u002Fplugins",{"key":390,"label":391,"href":392},"site.contact","Contact page","https:\u002F\u002Fpieces.app\u002Fcontact",{"key":394,"label":36,"href":395},"site.changelog","https:\u002F\u002Fpieces.app\u002Fchangelog",{"key":397,"label":398,"href":399},"site.news","News","https:\u002F\u002Fpieces.app\u002Fnews",{"key":401,"label":402,"href":403},"site.events","Community events","https:\u002F\u002Fpieces.app\u002Fcommunity\u002Fevents",{"key":405,"label":406,"href":407},"site.userStories","User stories","https:\u002F\u002Fpieces.app\u002Fuser-stories",{"key":409,"label":410,"href":411},"site.academy","Academy","https:\u002F\u002Fpieces.app\u002Flearn\u002Facademy",{"key":413,"label":414,"href":415},"site.support","Website support","https:\u002F\u002Fpieces.app\u002Fsupport",{"key":417,"label":418,"href":419},"site.standup","Standup","https:\u002F\u002Fpieces.app\u002Fstandup",{"key":421,"label":33,"href":422},"site.blog","https:\u002F\u002Fcode.pieces.app\u002Fblog",{"key":424,"label":51,"href":425},"social.discord","https:\u002F\u002Fdiscord.gg\u002Fgetpieces",{"key":427,"label":54,"href":428},"social.x","https:\u002F\u002Fx.com\u002Fgetpieces",{"key":430,"label":431,"href":428},"social.twitter","Twitter",{"key":433,"label":434,"href":435},"social.instagram","Instagram","https:\u002F\u002Fwww.instagram.com\u002Fgetpieces\u002F",{"key":437,"label":438,"href":439},"social.tiktok","TikTok","https:\u002F\u002Fwww.tiktok.com\u002F@getpieces",{"key":441,"label":442,"href":443},"social.linkedin","LinkedIn","https:\u002F\u002Fwww.linkedin.com\u002Fcompany\u002Fgetpieces\u002F",{"key":445,"label":446,"href":447},"social.youtube","YouTube","https:\u002F\u002Fyoutube.com\u002F@getpieces",{"key":449,"label":450,"href":451},"github.org","GitHub organization","https:\u002F\u002Fgithub.com\u002Fpieces-app",{"key":453,"label":454,"href":455},"github.support","GitHub support","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport",{"key":457,"label":458,"href":459},"github.issues","GitHub issues","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport\u002Fissues",{"key":461,"label":462,"href":463},"github.discussions","GitHub discussions","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fsupport\u002Fdiscussions",{"key":465,"label":466,"href":467},"github.documentation","GitHub documentation","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fdocumentation",{"key":469,"label":470,"href":471},"github.opensource","GitHub open source","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fopensource",{"key":473,"label":474,"href":475},"github.sdks.python","Python SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-python",{"key":477,"label":478,"href":479},"github.sdks.typescript","TypeScript SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-typescript",{"key":481,"label":482,"href":483},"github.sdks.dart","Dart SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-dart",{"key":485,"label":486,"href":487},"github.sdks.kotlin","Kotlin SDK","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fpieces-os-client-sdk-for-kotlin",{"key":489,"label":490,"href":491},"github.plugins.obsidian","Obsidian plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fobsidian-pieces",{"key":493,"label":494,"href":194},"github.plugins.jupyterlab","JupyterLab plugin repository",{"key":496,"label":497,"href":498},"github.plugins.sublime","Sublime plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_sublime",{"key":500,"label":501,"href":502},"github.plugins.neovim","Neovim plugin repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fplugin_neovim",{"key":504,"label":505,"href":506},"github.cliAgent","CLI agent repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fcli-agent",{"key":508,"label":509,"href":510},"github.mcpDart","MCP Dart repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fmcp_dart",{"key":512,"label":513,"href":514},"github.awesomePieces","Awesome Pieces repository","https:\u002F\u002Fgithub.com\u002Fpieces-app\u002Fawesome-pieces",{"key":516,"label":517,"href":518},"legal.privacyPolicy","Privacy policy","https:\u002F\u002Fpieces.app\u002Flegal\u002Fprivacy-policy",{"key":520,"label":521,"href":522},"legal.refundPolicy","Refund policy","https:\u002F\u002Fpieces.app\u002Flegal\u002Frefund-policy",{"key":524,"label":525,"href":526},"legal.terms","Terms","https:\u002F\u002Fpieces.app\u002Flegal\u002Fterms",{"key":528,"label":529,"href":530},"legal.security","Legal security","https:\u002F\u002Fpieces.app\u002Flegal\u002Fsecurity",{"key":532,"label":533,"href":447},"videos.youtubeChannel","YouTube channel",{"key":535,"label":536,"href":537},"videos.gettingStartedDesktop","Getting started desktop video","https:\u002F\u002Fyoutu.be\u002FdUr1lRM_TYk",{"key":539,"label":540,"href":541},"videos.snippetDiscovery","Snippet discovery video","https:\u002F\u002Fyoutu.be\u002FG6vb1USw-30",{"key":543,"label":544,"href":545},"sales.bookACall","Book a sales call","https:\u002F\u002Fcalendar.app.google\u002FWVUDtUfNy5Vst3sH7",{"key":547,"label":548,"href":549},"sales.enterprise","Enterprise form","https:\u002F\u002Fgetpieces.typeform.com\u002Fto\u002FaVQFTvpE",{"key":551,"label":552,"href":463},"sales.feedback","Feedback discussions",{"key":554,"label":555,"href":556},"sales.earlyAccess","Early access form","https:\u002F\u002Fgetpieces.typeform.com\u002Fearlyaccess",{"key":558,"label":559,"href":560},"sales.supportEmail","Support email","mailto:support@pieces.app",{"key":562,"label":563,"href":564},"routes.home","Home route","\u002F",{"key":566,"label":567,"href":46},"routes.about","About route",{"key":569,"label":570,"href":16},"routes.downloads","Downloads route",{"key":572,"label":573,"href":574},"routes.pricing","Pricing route","\u002Fpricing",{"key":576,"label":577,"href":578},"routes.security","Security route","\u002Fsecurity",{"key":580,"label":581,"href":49},"routes.enterprise","Enterprise route",{"key":583,"label":584,"href":585},"routes.thankYou","Thank you \u002F download route","\u002Fthank-you",{},"data\u002Fshared\u002Furls","P27xKEauu8D-8sfyr0wR4giF0teFSaCuAQ8kgcICQdI",{"id":590,"title":591,"author":592,"authorPhoto":593,"authorPhotoAlt":594,"authorSlug":595,"body":596,"buttonText":987,"buttonUrl":988,"category":989,"date":990,"description":991,"draft":992,"editorsPick":992,"extension":993,"featured":992,"image":994,"imageAlt":995,"meta":996,"navigation":20,"ogImage":997,"ogImageAlt":997,"path":998,"seo":999,"stem":1000,"tags":997,"__hash__":1001},"blog\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length.md","Context length in LLMs: how to make the most out of it","The Pieces Team","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fannouncing-the-pieces-visual-studio-extension\u002Fauthor.png","Pieces logo.","the-pieces-team",{"type":597,"value":598,"toc":972},"minimark",[599,607,610,613,616,621,632,641,648,657,660,663,666,671,674,677,711,715,718,726,729,733,736,749,754,759,764,769,773,781,784,787,791,799,807,810,813,816,824,829,848,857,870,874,903,906,909,917,920,924,927,930,940,943,967],[600,601,602,603],"p",{},"Building with AI depends on how well you can instruct the LLM to get the desired output. This is where the concept of context length in LLMs comes into play. It means the maximum amount of text an LLM can process at once, also known as the ",[604,605,606],"em",{},"feature extractor max length ast.",[600,608,609],{},"A larger context window allows an LLM to process longer inputs and add more information to its outputs. This can lead to more concise responses, fewer hallucinations, and improved accuracy, but it also has some drawbacks.",[600,611,612],{},"In this article, we’ll explain the concept of LLM context length, how we can improve it, and the advantages and disadvantages of varying context lengths.",[600,614,615],{},"We will also cover how one can improve model performance by applying specific AI context in copilots.",[617,618,620],"h2",{"id":619},"what-is-context-length-in-llms","What is context length in LLMs?",[600,622,623,624,631],{},"Context length in ",[625,626,630],"a",{"href":627,"rel":628},"https:\u002F\u002Fdocs.pieces.app\u002Fbuild\u002Fglossary\u002Fterms\u002Flarge-language-models",[629],"nofollow","Large Language Models (LLMs)"," refers to the maximum number of tokens that a model can process simultaneously. It is the maximum length of the input sequence and can be treated as the memory of the LLM and increasing it can often lead to better LLM performance.",[600,633,634,635,640],{},"Tokens are the model's method of encoding words into numerical representations through ",[625,636,639],{"href":637,"rel":638},"https:\u002F\u002Fmachinelearningmastery.com\u002Fa-gentle-introduction-to-positional-encoding-in-transformer-models-part-1\u002F",[629],"positional encoding",".",[600,642,643],{},[644,645],"img",{"alt":646,"src":647},"","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length\u002Fimg-001.png",[600,649,650],{},[625,651,654],{"href":652,"rel":653},"https:\u002F\u002Fagi-sphere.com\u002Fcontext-length\u002F",[629],[604,655,656],{},"agi.sphere.com",[600,658,659],{},"For instance, approximately 130 tokens represent 100 words. If a model encounters an unfamiliar word, it dissects the word into multiple tokens.",[600,661,662],{},"The context length of an LLM determines the maximum volume of information it can accept as input for a query. In simpler terms, a larger context length or LLM context window allows a user to input more information into a prompt to elicit a response.",[600,664,665],{},"While it's intuitive to consider LLM context length in terms of words, language models actually quantify content based on token length. Typically, a token corresponds to four characters in English or roughly ¾ of a word. Therefore, 100 tokens equate to about 75 words.",[667,668,670],"h3",{"id":669},"are-new-line-characters-helpful-in-the-llm-context","Are new line characters helpful in the LLM context?",[600,672,673],{},"The short answer is yes, they are, as they are helping to improve readability, context separation, and logical context handling.",[600,675,676],{},"Here are the context lengths of some of the most prominent LLMs:",[678,679,680,684,687,690,693,696,704],"ul",{},[681,682,683],"li",{},"Llama: 2K",[681,685,686],{},"Llama 2: 4K",[681,688,689],{},"GPT-3.5-turbo: 4K. (However, GPT-3.5-16k has a context length of 16K.)",[681,691,692],{},"GPT-4: 8K. (Similarly, the max content length for GPT-4-32k is upto 32K.)",[681,694,695],{},"Mistral 7B: 8K",[681,697,698,699],{},"Palm-2: 8K",[625,700,703],{"href":701,"rel":702},"https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=slcyuwvhTQA",[629],"‍",[681,705,706,710],{},[625,707,709],{"href":701,"rel":708},[629],"Gemini",": 32k token context length​​.",[617,712,714],{"id":713},"how-to-set-context-length","How to set context length",[600,716,717],{},"Context length in LLMs can be set either by the training process from the GUI or by using their APIs.",[600,719,720,721,725],{},"Most LLMs will have the ",[722,723,724],"code",{},"max\\_seq\\_len"," parameter and you can update the context length, by updating this parameter.",[600,727,728],{},"For example, suppose you have to update the context length in OLlama. In that case, you will need to go through the model's configuration file (e.g., config.json) find the max_sequence_length parameter, and then adjust the context length parameter (n_ctx) to the desired value.",[667,730,732],{"id":731},"what-is-input-sequence-length-vs-query-length-in-llm","What is input sequence length vs query length in LLM?",[600,734,735],{},"To understand LLM context length better, you also need to understand what input sequence length and query length mean.",[600,737,738,739,742,743,748],{},"Input sequence length refers to the total number of tokens in the entire input query, and system prompts, and can even consider the previous context.",[740,741],"br",{},"\nQuery length is the number of tokens that are present in the ",[625,744,747],{"href":745,"rel":746},"https:\u002F\u002Fpieces.app\u002Fblog\u002Fllm-prompt-engineering",[629],"LLM prompt"," a user sends to the model.",[750,751,753],"h4",{"id":752},"heres-an-example","Here’s an example:",[600,755,756],{},[604,757,758],{},"User prompt: \"Who is the President of India?”",[600,760,761],{},[604,762,763],{},"Input sequence length: This could be longer if the model considers the previous context.",[600,765,766],{},[604,767,768],{},"Query length: 5 tokens (\"Who” “is” “the” “President” “of”)",[667,770,772],{"id":771},"challenges-of-having-large-context-windows-vs-using-retrieval-instead","Challenges of having large context windows vs using retrieval instead",[600,774,775,776,640],{},"AI may generate inaccurate results. To deal with this, we opt for techniques like increasing context length or creating a ",[625,777,780],{"href":778,"rel":779},"https:\u002F\u002Fpieces.app\u002Fblog\u002Fretrieval-augmented-generation-for-curation",[629],"Retrieval Augmented Generation (RAG)",[600,782,783],{},"Both methods have their own upsides and downsides. Having a large context window leads to a rise in costs along with increased use of computational resources for processing extensive contexts since LLM providers charge per token, and a long context (i.e., more tokens) makes each query pricier.",[600,785,786],{},"Whereas Retrieval systems, it is not resource intensive and can be done at a reduced cost, it can be harder to integrate and it also has a dependency on other data sources which may again be outdated or inaccurate.",[617,788,790],{"id":789},"setting-context-length-through-ai-copilot","Setting context length through AI copilot",[600,792,793,794],{},"In the above paragraphs, we learned how setting context can lead to better output and accuracy. Let’s take a step forward, and learn how to do it with the ",[625,795,798],{"href":796,"rel":797},"https:\u002F\u002Fpieces.app\u002Ffeatures\u002Fcopilot",[629],"AI Copilot.",[600,800,801,802],{},"Pieces for Developers is an AI tool that can run on browsers and IDEs and help generate code, remember context, and improve general code management. The Pieces Copilot, which is the chat-like assistant, is already ",[625,803,806],{"href":804,"rel":805},"https:\u002F\u002Fpieces.app\u002Ffeatures\u002Fcopilot\u002Fcontext-awareness",[629],"contextually aware.",[600,808,809],{},"Let’s say you want to make some changes to your code. It can understand the contents of the open file and then suggest changes or updates accordingly.",[600,811,812],{},"However, you can improve the response even more by adding context from folders, files, code snippets, websites, and messages of your choice. All of this can be done locally, which also adds to increased security.",[600,814,815],{},"Let’s take a look at how you can set the context in Pieces Copilot inside Pieces for Developers:",[678,817,818,821],{},[681,819,820],{},"Go to Copilot chat on your Pieces Desktop app. You can navigate to the Copilot by searching in the search bar.",[681,822,823],{},"Click \"Set your Context\" at the bottom of the copilot chat as shown in the image below.",[600,825,826],{},[644,827],{"alt":646,"src":828},"https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length\u002Fimg-002.png",[678,830,831],{},[681,832,833,834],{},"Choose how you want to set your AI context:",[678,835,836,839],{},[681,837,838],{},"Long-term memorycan shadow your day-to-day work, capture relevant workflow materials, and add that as context to your Pieces Copilot.",[681,840,841,842,847],{},"Use the code snippets that you've previously created ",[625,843,846],{"href":844,"rel":845},"https:\u002F\u002Fpieces.app\u002Ffeatures\u002Fdrive\u002Fsave-code-snippets",[629],"and saved"," to Pieces to assist you in asking questions about your code",[600,849,850,851,856],{},"You can ",[625,852,855],{"href":853,"rel":854},"https:\u002F\u002Fpieces.app\u002Ffeatures\u002Fdrive",[629],"upload your code folders"," for the LLM to take document structure into context.",[600,858,859,860,865,866,640],{},"If you're interested in learning ",[625,861,864],{"href":862,"rel":863},"https:\u002F\u002Fpieces.app\u002Fblog\u002Fbuild-your-own-copilot-with-local-context",[629],"how to build your own copilot using Pieces OS SDK"," and add context to it, read the linked blog post and ",[625,867,869],{"href":425,"rel":868},[629],"join the Discord",[617,871,873],{"id":872},"setting-context-in-different-developer-tools-with-pieces-copilot","Setting context in different developer tools with Pieces Copilot",[600,875,876,880,881,886,887,886,892,886,897,902],{},[625,877,879],{"href":853,"rel":878},[629],"Pieces Drive"," can be used with IDEs of your choice like ",[625,882,885],{"href":883,"rel":884},"https:\u002F\u002Fdocs.pieces.app\u002Fextensions-plugins\u002Fvscode",[629],"VS Code",", ",[625,888,891],{"href":889,"rel":890},"https:\u002F\u002Fdocs.pieces.app\u002Fextensions-plugins\u002Fjetbrains",[629],"Jetbrains",[625,893,896],{"href":894,"rel":895},"https:\u002F\u002Fdocs.pieces.app\u002Fextensions-plugins\u002Fobsidian",[629],"Obsidian",[625,898,901],{"href":899,"rel":900},"https:\u002F\u002Fdocs.pieces.app\u002Fextensions-plugins\u002Fjupyterlab",[629],"JupyterLab",", Chrome, and other web extension integrations.",[600,904,905],{},"Similar to the Desktop App, you can use files, long-term memory context, folders, and snippets for context in AI conversations with your personalized copilot.",[600,907,908],{},"In some of our integrations like VS Code, you can utilize directives to quickly reuse materials as context. You can create your own custom creative, which allows you to define your own frequently used context sets for your questions and there are some default directives such as:",[678,910,911,914],{},[681,912,913],{},"@recent utilize the recently opened files as context",[681,915,916],{},"@workspace utilize your current workspace as context",[600,918,919],{},"If the copilot used a file as relevant context, it will show it in the chat window, and you can click on it to view it.",[667,921,923],{"id":922},"how-to-handle-long-context-in-llms","How to handle long context in LLMs",[600,925,926],{},"When conducting an LLM context window comparison, it's important to understand the various tradeoffs.",[600,928,929],{},"Through this article, we have learned about context lengths in LLM and how it can help us get more concise and accurate results. However, we have also learned that it can lead to some issues like increased cost. Some other ways to handle long context are:",[678,931,932,935,938],{},[681,933,934],{},"Already using an assistant like Pieces that is contextually aware and has memory retention powers.",[681,936,937],{},"Chunking and summarization",[681,939,780],{},[600,941,942],{},"Here are some resources that you can read to learn more about context lengths:",[944,945,946,953,960],"ol",{},[681,947,948],{},[625,949,952],{"href":950,"rel":951},"https:\u002F\u002Ftowardsdatascience.com\u002Fwhy-and-how-to-achieve-longer-context-windows-for-llms-5f76f8656ea9",[629],"Why and How to Achieve Longer Context Windows for LLMs",[681,954,955],{},[625,956,959],{"href":957,"rel":958},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2402.02244",[629],"Beyond the Limits: A Survey of Techniques to Extend the Context Length in Large Language Models",[681,961,962],{},[625,963,966],{"href":964,"rel":965},"https:\u002F\u002Farxiv.org\u002Fabs\u002F2306.15595",[629],"Extending Context Window of Large Language Models via Positional Interpolation",[600,968,969],{},[604,970,971],{},"This article was first published on January 31st, 2024 and was improved by Haimantika Mitra as of January 2nd, 2025 to improve your experience and share the latest information.",{"title":646,"searchDepth":973,"depth":973,"links":974},2,[975,979,983,984],{"id":619,"depth":973,"text":620,"children":976},[977],{"id":669,"depth":978,"text":670},3,{"id":713,"depth":973,"text":714,"children":980},[981,982],{"id":731,"depth":978,"text":732},{"id":771,"depth":978,"text":772},{"id":789,"depth":973,"text":790},{"id":872,"depth":973,"text":873,"children":985},[986],{"id":922,"depth":978,"text":923},"Try Pieces","https:\u002F\u002Fdocs.pieces.app\u002Finstallation-getting-started\u002Fwhat-am-i-installing","AI & LLM","2025-01-02T00:00:00.000Z","Learn how you can get the best out of your LLMs by refining LLM context length to get more accurate and concise results.",false,"md","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length\u002Fhero.png","Person with a watch looking at code on a computer.",{},null,"\u002Fblog\u002Fai-context-making-the-most-out-of-your-llm-context-length",{"title":591,"description":991},"blog\u002Fai-context-making-the-most-out-of-your-llm-context-length","w2DxxwN9Nqzm5CK_pvAHXrca-Kp_h1wnn91JhyOyx5A",{"id":1003,"title":592,"body":1004,"description":646,"draft":992,"extension":993,"meta":1008,"navigation":20,"path":1009,"photo":1010,"photoAlt":997,"seo":1011,"stem":1012,"__hash__":1013},"authors\u002Fauthors\u002Fthe-pieces-team.md",{"type":597,"value":1005,"toc":1006},[],{"title":646,"searchDepth":973,"depth":973,"links":1007},[],{},"\u002Fauthors\u002Fthe-pieces-team","https:\u002F\u002Fstorage.googleapis.com\u002Fpieces-marketing-website\u002Fimages\u002Fauthors\u002Fthe-pieces-team.png",{"title":592,"description":646},"authors\u002Fthe-pieces-team","_2O_QA8d8RjXlBp0ck4PWDG6iA74zW1kN0R0gkn2Lls"]