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] Interpolation issue in storage folder name created by crewai #2014

Open
paarttipaabhalaji opened this issue Jan 31, 2025 · 0 comments
Open
Labels
bug Something isn't working

Comments

@paarttipaabhalaji
Copy link

Description

Interpolation is not happen properly in the storage folder names.

Steps to Reproduce

  1. create a crew using "crewai create crew <crew_name>
  2. configure watsonx memory (you can cross-verify with any provider)
  3. configure "CREWAI_STORAGE_DIR"
  4. configure embedder in crew
@crew
    def crew(self) -> Crew:
        """Creates the WxCrewaiEmbedd crew"""
        # To learn how to add knowledge sources to your crew, check out the documentation:
        # https://docs.crewai.com/concepts/knowledge#what-is-knowledge

        return Crew(
            agents=self.agents, # Automatically created by the @agent decorator
            tasks=self.tasks, # Automatically created by the @task decorator
            process=Process.sequential,
            verbose=True,
            memory=True,
            embedder={
                "provider": "watson",
                "config": {
                    "model": embedding_model_watsonx,
                    "api_url": base_url,
                    "api_key": apikey,
                    "project_id": projId,
                }
            },
        )

Expected behavior

It need to interpolate the folder name according to the crew input.

Screenshots/Code snippets

Image

Operating System

macOS Sonoma

Python Version

3.12

crewAI Version

0.100.0

crewAI Tools Version

0.33.0

Virtual Environment

Venv

Evidence

Image

Possible Solution

my input is

def run():
    """
    Run the crew.
    """
    inputs = {
        'topic': 'AI LLMs',
        'current_year': str(datetime.now().year)
    }
    
    try:
        WxCrewaiEmbedd().crew().kickoff(inputs=inputs)
    except Exception as e:
        raise Exception(f"An error occurred while running the crew: {e}")

The folder should be like "AI LLMs_Senior_Data_Researcher_AI LLMs_Reporting_Analyst" but its created the folder like {topic}Senior_Data_Researcher{topic}_Reporting_Analyst

Additional context

The folder should be like "AI LLMs_Senior_Data_Researcher_AI LLMs_Reporting_Analyst" but its created the folder like {topic}Senior_Data_Researcher{topic}_Reporting_Analyst

@paarttipaabhalaji paarttipaabhalaji added the bug Something isn't working label Jan 31, 2025
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

No branches or pull requests

1 participant