+
Skip to content

Conversation

zealoushacker
Copy link
Collaborator

No description provided.

zealoushacker and others added 10 commits September 26, 2025 20:11
Interactive notebook demonstrating Claude's memory tool and context editing capabilities with code review examples.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Update .env.example to use claude-sonnet-4-5 model
- Remove "Always check memory first" from system prompts
- Add warning to clear_all_memory() about demonstration purposes
- Add path validation assertion in _delete() for safety
- Add notebook cell warning about memory clearing
- Clarify "Pattern Stored" section to show what Claude learns

All changes verified against official memory tool documentation.
- Add Any to imports in web_scraper_v1.py, api_client_v1.py, and cache_manager.py
- Replace lowercase 'any' with 'Any' in all type hints
- Fixes syntax error: 'any' is a built-in function, not a type

Addresses PR review comments from automated bot and samj.
Co-authored-by: Eric Harmeling <eric.harmeling@outlook.com>
Links to the Effective Context Engineering blog post at the start of the introduction to provide readers with background on the engineering principles demonstrated in the cookbook.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@zealoushacker zealoushacker merged commit 0a01b8c into main Sep 29, 2025
5 checks passed
Copy link

Copy link

🔍 Claude Model Usage Review

Summary

I've reviewed all changed files for Claude model usage. Found several deprecated models and opportunities for improvement.

❌ Issues Found

1. Deprecated Claude 2.x Models

  • third_party/Pinecone/rag_using_pinecone.ipynb:398 - Uses claude-2.1 (legacy/deprecated)
  • third_party/Wikipedia/wikipedia-search-cookbook.ipynb:434 - Uses claude-2 (legacy/deprecated)

2. Suboptimal Model References

Multiple files use specific dated versions instead of -latest aliases:

  • claude-3-5-sonnet-20241022 appears in 13+ files
  • claude-3-haiku-20240307 appears in 10+ files
  • claude-3-opus-20240229 appears in 6+ files

✅ Valid Models Found

  • claude-3-7-sonnet-20250219 (Claude Sonnet 3.7)
  • claude-3-5-sonnet-20241022 (valid but could use -latest alias)
  • claude-3-haiku-20240307 (Claude Haiku 3)
  • claude-3-opus-20240229 (Claude Opus 3)

🔧 Recommendations

High Priority

  1. Update deprecated Claude 2.x models to current versions:
    • claude-2.1claude-3-7-sonnet-latest or claude-3-haiku-20240307
    • claude-2claude-3-7-sonnet-latest or claude-3-haiku-20240307

Medium Priority

  1. Consider using -latest aliases for better maintainability:
    • claude-3-5-sonnet-20241022claude-3-7-sonnet-latest
    • claude-3-haiku-20240307 → Current version (no -latest alias available)

Low Priority

  1. Review data files containing old model references in documentation to avoid user confusion

Current Public Models (as of documentation)

  • Claude Sonnet 4.5: claude-sonnet-4-5-20250929
  • Claude Sonnet 4: claude-sonnet-4-20250514
  • Claude Sonnet 3.7: claude-3-7-sonnet-20250219 (alias: claude-3-7-sonnet-latest)
  • Claude Opus 4.1: claude-opus-4-1-20250805
  • Claude Opus 4: claude-opus-4-20250514
  • Claude Haiku 3.5: claude-3-5-haiku-20241022 (alias: claude-3-5-haiku-latest)
  • Claude Haiku 3: claude-3-haiku-20240307

Note: Claude 3.5 Sonnet and Claude Opus 3 are deprecated according to current documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载