{"payload":{"feedbackUrl":"https://github.com/orgs/community/discussions/53140","repo":{"id":615403340,"defaultBranch":"main","name":"outlines","ownerLogin":"outlines-dev","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2023-03-17T16:01:18.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/144020531?v=4","public":true,"private":false,"isOrgOwned":true},"refInfo":{"name":"","listCacheKey":"v0:1714648357.0","currentOid":""},"activityList":{"items":[{"before":"cc3059e4a424bb5f3ae4bc329262a53ee6e32925","after":"28a18218513d67c036cb9b3938204d19bd64db47","ref":"refs/heads/gh-pages","pushedAt":"2024-05-24T11:55:32.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed e5c39e2 with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed e5c39e2 with MkDocs version: 1.6.0"}},{"before":"411eaaf2d9426a56f7fdb99a1d7073dadd463806","after":"e5c39e25f7b77dbb8c4140e23135650bc4d769e8","ref":"refs/heads/main","pushedAt":"2024-05-24T11:54:59.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Enable Tuples / prefixItems in build_regex_from_schema()","shortMessageHtmlLink":"Enable Tuples / prefixItems in build_regex_from_schema()"}},{"before":"fd15be5da16fdb0c4f386116ac94ceed44ddc750","after":"cc3059e4a424bb5f3ae4bc329262a53ee6e32925","ref":"refs/heads/gh-pages","pushedAt":"2024-05-24T06:13:06.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 411eaaf with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 411eaaf with MkDocs version: 1.6.0"}},{"before":"ba7affd92883aaa5ceacfba7ef5abd5a27b2eb26","after":"411eaaf2d9426a56f7fdb99a1d7073dadd463806","ref":"refs/heads/main","pushedAt":"2024-05-24T06:12:31.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Use less problematic whitespace token (#916)\n\nFixes #839 #908 #690 #450\r\n\r\n## Problem\r\n\r\nA major problem, especially with smaller language models, is the\r\nrepetition problem.\r\n\r\nFor example, let's say a model is generating json and must provide 12\r\nspace tokens for indentation in json output. Often a language model will\r\nassign a high probability to a 13th space token, and do the same for a\r\n14th space, and then enter an infinite space generation loop.\r\n\r\nThis is a problem with NLG that has been known for half a decade, but\r\nonly has mitigations (mirostat, repetition penalty, using hundreds of\r\nbillions of weights, etc), no absolute solutions (except for\r\n**structured generation**)\r\n\r\n## Solution\r\n\r\nFor structured json generation, we set a sane default whitespace pattern\r\nof `r\"[ ]?\"`. This removes all newlines and indentation. It disallows\r\nany syntactic whitespace beyond a single space separator.\r\n\r\nUsers can still set the argument `whitespace_pattern=` if they want\r\ndifferent behavior","shortMessageHtmlLink":"Use less problematic whitespace token (#916)"}},{"before":"269621c48b91bade5d7bf9a9c0a9dad7a291dd47","after":"fd15be5da16fdb0c4f386116ac94ceed44ddc750","ref":"refs/heads/gh-pages","pushedAt":"2024-05-23T18:00:34.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed ba7affd with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed ba7affd with MkDocs version: 1.6.0"}},{"before":"ffab2ac4fa273b1b63702d63d3e42035be023017","after":"ba7affd92883aaa5ceacfba7ef5abd5a27b2eb26","ref":"refs/heads/main","pushedAt":"2024-05-23T18:00:01.000Z","pushType":"pr_merge","commitsCount":2,"pusher":{"login":"brandonwillard","name":"Brandon T. Willard","path":"/brandonwillard","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/971601?s=80&v=4"},"commit":{"message":"Use a persistent Tokenizer hash for create_states_mapping cache","shortMessageHtmlLink":"Use a persistent Tokenizer hash for create_states_mapping cache"}},{"before":"d14daa9acb0ca4eb2c6541f639f5ff6943a823fd","after":"269621c48b91bade5d7bf9a9c0a9dad7a291dd47","ref":"refs/heads/gh-pages","pushedAt":"2024-05-23T15:19:18.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed ffab2ac with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed ffab2ac with MkDocs version: 1.6.0"}},{"before":"6f655ca8f00d6ea42c72eb699d97c78a10a826ab","after":"ffab2ac4fa273b1b63702d63d3e42035be023017","ref":"refs/heads/main","pushedAt":"2024-05-23T15:18:36.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Use TQDM to track index compilation progress","shortMessageHtmlLink":"Use TQDM to track index compilation progress"}},{"before":"35176dd3d0951ec31825aec25815ac938db7e140","after":"d14daa9acb0ca4eb2c6541f639f5ff6943a823fd","ref":"refs/heads/gh-pages","pushedAt":"2024-05-22T08:33:22.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 6f655ca with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 6f655ca with MkDocs version: 1.6.0"}},{"before":"7863f8e8bbaeb71c9d2434636a2d63bfe6dd7d39","after":"6f655ca8f00d6ea42c72eb699d97c78a10a826ab","ref":"refs/heads/main","pushedAt":"2024-05-22T08:32:44.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Allow objects in json schemas without additionalProperties set","shortMessageHtmlLink":"Allow objects in json schemas without additionalProperties set"}},{"before":"16fe01e25f26862d7a69334229518ef159fc43ed","after":"35176dd3d0951ec31825aec25815ac938db7e140","ref":"refs/heads/gh-pages","pushedAt":"2024-05-18T07:50:55.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 7863f8e with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 7863f8e with MkDocs version: 1.6.0"}},{"before":"3e291b1357326d1664326b9bb9780ea71ee2d236","after":"7863f8e8bbaeb71c9d2434636a2d63bfe6dd7d39","ref":"refs/heads/main","pushedAt":"2024-05-18T07:50:25.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Allow Parenthesis in `STRING_INNER` (#899)\n\nFix #838\r\n\r\n\r\nhttps://github.com/outlines-dev/outlines/commit/06d565496966f0dbe184dd619b62ea276035f562\r\nerroneously disallowed parenthesis in strings. This PR allows\r\nparenthesis in strings.","shortMessageHtmlLink":"Allow Parenthesis in STRING_INNER (#899)"}},{"before":"7441d948cb4e8e2bc1b964ab9a236b500384161a","after":"16fe01e25f26862d7a69334229518ef159fc43ed","ref":"refs/heads/gh-pages","pushedAt":"2024-05-17T21:23:28.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 3e291b1 with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 3e291b1 with MkDocs version: 1.6.0"}},{"before":"315d531b9b8cf4c1a87179531b479001e08a4d8e","after":"3e291b1357326d1664326b9bb9780ea71ee2d236","ref":"refs/heads/main","pushedAt":"2024-05-17T21:22:59.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Add args to Jinja filters (#902)\n\nIn the outlines docs, we have the example\r\n```python\r\nimport outlines\r\n\r\ndef my_tool(arg1: str, arg2: int):\r\n \"\"\"Tool description.\r\n\r\n The rest of the docstring\r\n \"\"\"\r\n pass\r\n\r\n@outlines.prompt\r\ndef tool_prompt(question, tool):\r\n \"\"\"{{ question }}\r\n\r\n COMMANDS\r\n 1. {{ tool | name }}: {{ tool | description }}, args: {{ tool | args }}\r\n\r\n {{ tool | source }}\r\n \"\"\"\r\n\r\nprompt = tool_prompt(\"Can you do something?\", my_tool)\r\nprint(prompt)\r\n```\r\nHowever, when I tried running this code, it did not work because the\r\n`args` filter used in `{{ tool | args }}` was not implemented. I\r\nimplemented the `args` filter so now this example works.\r\n\r\nNow the args filter will output all of the arguments with the type\r\nannotations and default values (if they are provided).\r\nExample:\r\n```python\r\nfrom typing import List\r\n\r\ndef foo(x, y: str, z: List[int]=[1, 2, 3]):\r\n pass\r\n\r\n@outlines.prompt\r\ndef tool_prompt(fn):\r\n \"\"\"My args: {{ fn | args }}\"\"\"\r\n\r\nprompt = tool_prompt(foo)\r\nprint(prompt)\r\n```\r\nwhich outputs\r\n```python\r\nMy args: x, y: str, z: List[int] = [1, 2, 3]\r\n```","shortMessageHtmlLink":"Add args to Jinja filters (#902)"}},{"before":"2b4a8bc32c47f123ae78ecf975d9532bd0634fa2","after":"7441d948cb4e8e2bc1b964ab9a236b500384161a","ref":"refs/heads/gh-pages","pushedAt":"2024-05-17T16:52:29.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 315d531 with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 315d531 with MkDocs version: 1.6.0"}},{"before":"499d19dd3078e5e21cf68c7916a162d5e8ce0990","after":"315d531b9b8cf4c1a87179531b479001e08a4d8e","ref":"refs/heads/main","pushedAt":"2024-05-17T16:52:00.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"circumvent broken llama.cpp pre-tokenizer","shortMessageHtmlLink":"circumvent broken llama.cpp pre-tokenizer"}},{"before":"4bdea16bebf9f6f139854fdde3006d73e56d78e7","after":"2b4a8bc32c47f123ae78ecf975d9532bd0634fa2","ref":"refs/heads/gh-pages","pushedAt":"2024-05-17T09:09:32.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 499d19d with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 499d19d with MkDocs version: 1.6.0"}},{"before":"159d1ec6d6ee34515755424019abf996e061f993","after":"499d19dd3078e5e21cf68c7916a162d5e8ce0990","ref":"refs/heads/main","pushedAt":"2024-05-17T09:09:04.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Prevent Illegal Look-Around for OneOf in JSONSchema (#897)\n\nFixes #823\r\n\r\nThis comment details the issues error:\r\nhttps://github.com/outlines-dev/outlines/issues/823#issuecomment-2116490949\r\n\r\nThe reproduction code provided results in a json schema with\r\n`OneOf[pets]`:\r\n\r\n```\r\nclass Model(BaseModel):\r\n pet: Union[Cat, Dog] = Field(..., discriminator='pet_type')\r\n```\r\n\r\nBefore this PR: `OneOf` uses negative lookaheads to assert that only one\r\nschema member is included. This is illegal in `interegular`, more\r\ndetails available here:\r\nhttps://github.com/outlines-dev/outlines/issues/456\r\n\r\nAfter `OneOf` uses or-joined non-capturing groups which don't have the\r\nsame issues with `interegular`.","shortMessageHtmlLink":"Prevent Illegal Look-Around for OneOf in JSONSchema (#897)"}},{"before":"0f2b920f493b29149bcf843ba147aae7e3e656c7","after":"4bdea16bebf9f6f139854fdde3006d73e56d78e7","ref":"refs/heads/gh-pages","pushedAt":"2024-05-17T09:05:47.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 159d1ec with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 159d1ec with MkDocs version: 1.6.0"}},{"before":"78852b0169e7c4c6f3eaf6b2b2e6209e41edf98c","after":"159d1ec6d6ee34515755424019abf996e061f993","ref":"refs/heads/main","pushedAt":"2024-05-17T09:05:17.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Fixing stream stopping at wrong location (#898)\n\nFixes https://github.com/outlines-dev/outlines/issues/896","shortMessageHtmlLink":"Fixing stream stopping at wrong location (#898)"}},{"before":"2c7cd4a183dbb5e22f78f7ee4b72a70bdaf99f16","after":"0f2b920f493b29149bcf843ba147aae7e3e656c7","ref":"refs/heads/gh-pages","pushedAt":"2024-05-11T20:15:02.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 78852b0 with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 78852b0 with MkDocs version: 1.6.0"}},{"before":"97ec37d9038750101152582e5df3d7315b2759b5","after":"78852b0169e7c4c6f3eaf6b2b2e6209e41edf98c","ref":"refs/heads/main","pushedAt":"2024-05-11T20:14:12.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Remove broken final state loop (#874)\n\nFixes #856\r\n\r\nThe code this PR removes introduces an artificial and erroneous loop\r\ntransition in every final state that is always traversed, regardless of\r\nthe generation.\r\n\r\nThe comment doesn't make sense in my opinion, as the `if` above just\r\nhandles exactly this case.\r\n\r\nRemoving this piece of code fixes the bug that surfaced in the upgrade\r\nof outlines in the vLLM integration.","shortMessageHtmlLink":"Remove broken final state loop (#874)"}},{"before":"8a650524265e8426172e84a3c65d54e5702c1d57","after":"2c7cd4a183dbb5e22f78f7ee4b72a70bdaf99f16","ref":"refs/heads/gh-pages","pushedAt":"2024-05-08T15:08:01.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 97ec37d with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 97ec37d with MkDocs version: 1.6.0"}},{"before":"99e684efa9a3f5cc350f994146d0195f59810944","after":"97ec37d9038750101152582e5df3d7315b2759b5","ref":"refs/heads/main","pushedAt":"2024-05-08T15:07:27.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Extract function name in `get_schema_from_signature` (#878)","shortMessageHtmlLink":"Extract function name in get_schema_from_signature (#878)"}},{"before":"b835a13dd924b6cfc61e2c8175d41e8dbc9db06c","after":"8a650524265e8426172e84a3c65d54e5702c1d57","ref":"refs/heads/gh-pages","pushedAt":"2024-05-08T12:04:28.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 99e684e with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 99e684e with MkDocs version: 1.6.0"}},{"before":"a84d78ce446aff80962e58adcd48a15e1519e1f2","after":"99e684efa9a3f5cc350f994146d0195f59810944","ref":"refs/heads/main","pushedAt":"2024-05-08T12:03:56.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Fix installation instructions (#877)","shortMessageHtmlLink":"Fix installation instructions (#877)"}},{"before":"0d8b747e67bdbce4ca10f544ec82a9cfde8a76f8","after":"b835a13dd924b6cfc61e2c8175d41e8dbc9db06c","ref":"refs/heads/gh-pages","pushedAt":"2024-05-08T12:02:59.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed a84d78c with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed a84d78c with MkDocs version: 1.6.0"}},{"before":"4f8433d8d6633b0780c3a6c27981f9adffbe49f5","after":"a84d78ce446aff80962e58adcd48a15e1519e1f2","ref":"refs/heads/main","pushedAt":"2024-05-08T12:02:27.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Add `Email` type (#870)","shortMessageHtmlLink":"Add Email type (#870)"}},{"before":"624bdc03886f53f32b03d33095baa5fa003aa848","after":"0d8b747e67bdbce4ca10f544ec82a9cfde8a76f8","ref":"refs/heads/gh-pages","pushedAt":"2024-05-06T08:40:03.000Z","pushType":"force_push","commitsCount":0,"pusher":{"login":"github-actions[bot]","name":null,"path":"/apps/github-actions","primaryAvatarUrl":"https://avatars.githubusercontent.com/in/15368?s=80&v=4"},"commit":{"message":"Deployed 4f8433d with MkDocs version: 1.6.0","shortMessageHtmlLink":"Deployed 4f8433d with MkDocs version: 1.6.0"}},{"before":"353cebb276c4b90f1300f7ce514bc68a3f5ad6c9","after":"4f8433d8d6633b0780c3a6c27981f9adffbe49f5","ref":"refs/heads/main","pushedAt":"2024-05-06T08:39:29.000Z","pushType":"pr_merge","commitsCount":1,"pusher":{"login":"rlouf","name":"Rémi Louf","path":"/rlouf","primaryAvatarUrl":"https://avatars.githubusercontent.com/u/3885044?s=80&v=4"},"commit":{"message":"Localize types","shortMessageHtmlLink":"Localize types"}}],"hasNextPage":true,"hasPreviousPage":false,"activityType":"all","actor":null,"timePeriod":"all","sort":"DESC","perPage":30,"cursor":"djE6ks8AAAAEUvx0rAA","startCursor":null,"endCursor":null}},"title":"Activity · outlines-dev/outlines"}