Ask a codebase. Check every line.
Index a public GitHub repository, ask questions in plain English, and get answers that cite the exact file and lines they come from.
What does Response.ok check?
Response.ok returns True when the response status_code is less than 400 and False otherwise . Internally it calls self.raise_for_status(); if that raises HTTPError ok returns False, otherwise it returns True . It's explicitly not a check for exactly "200 OK" .
857 def __iter__(self) -> Iterator[bytes]:858 """Allows you to use a response as an iterator."""859 return self.iter_content(128)860861 @property862 def ok(self) -> bool:863 """Returns True if :attr:`status_code` is less than 400, False if not.864865 This attribute checks if the status code of the response is between866 400 and 600 to see if there was a client error or a server error. If867 the status code is between 200 and 400, this will return True. This868 is **not** a check to see if the response code is ``200 OK``.869 """870 try:871 self.raise_for_status()872 except HTTPError:873 return False874 return True875876 @property877 def is_redirect(self) -> bool:878 """True if this Response is a well-formed HTTP redirect that could have
How it works
- 1
Connect a repository
Paste the URL of a public GitHub repository.
- 2
It gets indexed
The code is split into functions and classes, so a search can find them by meaning and by exact name. A refresh embeds again only the code that changed.
- 3
Ask and check
Every claim cites a file and line range that opens on GitHub. When the code does not contain the answer, it says so instead of guessing.
Measured, not promised
On 57 answerable and 9 unanswerable questions about the requests library.
- Right code in the top 5 results
- 0.74 → 0.93
- The share of questions where the code holding the answer was among the 5 chunks retrieved: from vector search only to hybrid search in Postgres.
- Refused when the code has no answer
- 9 of 9
- Questions the repository cannot answer got “I don’t know” instead of a guess.
The search variants were chosen using these same questions, so the figures may be optimistic. A larger question set would be a fairer test.
Limits
- Python code only, from public GitHub repositories, at most 5 repositories each.
- Each question is answered on its own, with no memory of earlier ones, and chat history is not saved.
- A login lasts one hour, and there is no refresh yet.