Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] DOCS: Incorrect import statement in memory examples #2395

Closed
drobbins-ancile opened this issue Mar 17, 2025 · 0 comments · Fixed by #2396
Closed

[BUG] DOCS: Incorrect import statement in memory examples #2395

drobbins-ancile opened this issue Mar 17, 2025 · 0 comments · Fixed by #2396
Labels
bug Something isn't working

Comments

@drobbins-ancile
Copy link

Description

The documentation shows this import statement under Example: Use Custom Memory Instances e.g FAISS as the VectorDB:

from crewai.memory.storage import LTMSQLiteStorage, RAGStorage

Which is incorrect and results in an import error.

Looking at the storage code, the correct imports should be:

from crewai.memory.storage.rag_storage import RAGStorage
from crewai.memory.storage.ltm_sqlite_storage.py import LTMSQLiteStorage

Steps to Reproduce

Attempt to import the classes using the example in the documentation:

from crewai.memory.storage import LTMSQLiteStorage, RAGStorage

Run your app and observe an import error.

Expected behavior

The app starts without import errors.

Screenshots/Code snippets

from crewai.memory.storage import RAGStorage

short_term_memory = ShortTermMemory(
    storage = RAGStorage(
            embedder_config={
                "provider": "openai",
                "config": {
                    "model": 'text-embedding-3-small'
                }
            },
            type="short_term",
            path="/my_crew1/"
        )
    ),
),

Operating System

Ubuntu 24.04

Python Version

3.12

crewAI Version

0.108

crewAI Tools Version

NA

Virtual Environment

Venv

Evidence

Image

Possible Solution

Update the docs to show the correct import path.

Additional context

NA

@drobbins-ancile drobbins-ancile added the bug Something isn't working label Mar 17, 2025
devin-ai-integration bot added a commit that referenced this issue Mar 17, 2025
…#2395)

Co-Authored-By: Joe Moura <joao@crewai.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant