mirror of
https://github.com/karpathy/nanochat.git
synced 2026-05-16 20:57:33 +00:00
Previous suffix 'Based on the search results above, ' still let the model write meta-commentary ('1 person provided an answer') instead of content. Now we extract the first result's snippet from the tool output and seed the suffix with 'Here's what I found: {snippet}' — the model's next tokens continue from real prose rather than reasoning about the JSON structure.
|
||
|---|---|---|
| .. | ||
| _model.py | ||
| _query_classifier.py | ||
| _tokenizer.py | ||
| _tools.py | ||
| serve.py | ||