Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
whimo committed May 19, 2024
1 parent 10e9265 commit 0c51b8b
Show file tree
Hide file tree
Showing 41 changed files with 5 additions and 9 deletions.
8 changes: 2 additions & 6 deletions motleycrew/caching/http_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,12 +151,8 @@ def get_cache_file(self, func: Callable, *args, **kwargs) -> Union[tuple, None]:
kwargs_clone.pop(param, None)

# Create hash based on argument names, argument values, and function source code
hashing_base = {
"args": args_dict,
"kwargs": kwargs_clone,
"func_source_code": inspect.getsource(func),
}
call_hash = recursive_hash(hashing_base)
hashing_base = [args_dict, kwargs_clone, inspect.getsource(func)]
call_hash = recursive_hash(hashing_base, ignore_params=self.ignore_params)

cache_file = cache_dir / "{}.pkl".format(call_hash)
return cache_file, url
Expand Down
2 changes: 1 addition & 1 deletion motleycrew/caching/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def recursive_hash(value, depth=0, ignore_params=[]):
).encode()
).hexdigest()
elif hasattr(value, "__dict__") and value.__class__.__name__ not in ignore_params:
return recursive_hash(value.__dict__, depth + 1, ignore_params)
return recursive_hash(value.__dict__, depth, ignore_params)
else:
return hashlib.sha256("unknown".encode()).hexdigest()

Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/itest_golden_data/delegation_crewai.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"**Title: The Future is Now: Unpacking 2023's Coolest AI Breakthroughs**\n\n**Introduction**\nWelcome to the cutting edge of technology! 2023 has been a landmark year for artificial intelligence, pushing boundaries and redefining what machines can do. From creating videos out of thin air to understanding and processing the world in multiple data formats, let's dive into the coolest AI advancements that are setting the stage for a futuristic tomorrow.\n\n**Multimodal AI: A Symphony of Data**\nImagine an AI that doesn\u2019t just understand text or images but can interpret them all - voice, video, images, and even code. This year, the rise of multimodal AI has shown us a glimpse of a future where AI can handle complex tasks that require understanding different types of data simultaneously. This isn't just an improvement; it's a revolution in how AI perceives the world, making it more similar to how humans process information.\n\n**Google's Veo: Painting Visions with Words**\nEver thought about describing a scene and letting AI create a video for you? Google's latest marvel, Veo, turns this fantasy into reality. By simply providing text prompts, Veo can generate high-definition video clips. This tool is not just a new toy for creatives but a powerful asset for educators, marketers, and storytellers, offering endless possibilities in video content creation.\n\n**GPT-4: Smarter, Faster, and More Ethical**\nOpenAI continues to impress with its GPT series, and GPT-4 has taken the spotlight this year. With enhanced capabilities to handle a diverse range of data types through a unified interface, GPT-4 is not just smarter but also faster and more ethically aware. Whether it's writing, coding, or even basic reasoning, GPT-4 is on its way to becoming an indispensable tool for professionals across various industries.\n\n**Conclusion**\nAs we look at these incredible advancements, it's clear that AI is not just evolving; it's thriving. These developments promise not only to enhance technological applications but also to improve the quality of our daily lives. The future of AI is here, and it's more exciting than ever. Stay tuned, because this journey into the world of artificial intelligence is just beginning!\n\nThis blog post aims to capture the essence of the latest AI advancements in a manner that is both informative and exciting, making complex technologies relatable and engaging for a tech-savvy audience."
"**Title: Unveiling 2023's Game-Changing AI Innovations**\n\n**Introduction**\nAs we navigate through 2023, the landscape of artificial intelligence continues to evolve at a breathtaking pace. This year, we've witnessed some groundbreaking advancements that are not just reshaping industries but are also setting new benchmarks in the capabilities of AI technologies. Let's dive into some of the most thrilling developments that are making headlines this year!\n\n**Generative AI Takes the Lead**\nOne of the most buzzworthy breakthroughs has been in the realm of generative AI. Imagine a technology that can write poems, draft emails, or even generate computer code at the blink of an eye. This isn't science fiction anymore; it's the reality brought to us by the latest generative models like Gemini Ultra. This powerhouse has outperformed human experts in various benchmarks, showcasing an ability that was once thought to be decades away.\n\n**Business Transformation with AI**\nIt's not just about cool tech and fancy algorithms; the real-world impact of these AI advancements is profound. According to a recent McKinsey Global Survey, businesses across the globe are rapidly integrating AI tools into their operations. From automating routine tasks to enhancing decision-making processes, AI is becoming an indispensable asset for companies striving to stay competitive in a digital-first world.\n\n**Ethics and Policy: The Growing Debate**\nWith great power comes great responsibility. As AI technologies become more integrated into our daily lives, the discussions around ethics and transparency are gaining momentum. 2023 has seen significant strides in not only advancing AI technology but also in framing the necessary policies to ensure these tools are used wisely and ethically.\n\n**Conclusion**\nThe advancements in AI this year are nothing short of revolutionary. As we continue to explore the potential of these technologies, one thing is clear: the future is here, and it's powered by AI. Whether you're a tech enthusiast, a business leader, or just a curious mind, these developments promise exciting possibilities and a glimpse into a future where AI is at the heart of innovation and human progress. Stay tuned, because the AI revolution is just getting started!\n\nThis blog post is designed to be informative yet accessible, capturing the excitement surrounding the latest AI advancements while ensuring it remains engaging for a tech-savvy audience."
2 changes: 1 addition & 1 deletion tests/itest_golden_data/single_llama_index.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"**Comprehensive Analysis Report on AI Advancements in 2024**\n\n**Introduction**\nIn 2024, artificial intelligence (AI) continues to evolve rapidly, impacting various industries and everyday life. This report delves into the latest advancements, identifying key trends, breakthrough technologies, and their potential impacts on industries.\n\n**1. Key Trends in AI**\n - **Generative and Multimodal AI**: There is an explosive growth in generative AI, which is becoming increasingly useful for regular, non-tech individuals. Multimodal AI, which integrates multiple types of data such as text, images, and sound, is also seeing significant advancements.\n - **Quantum AI**: Quantum computing is beginning to integrate with AI technologies, promising substantial leaps in processing power and capabilities.\n - **Explainable AI (XAI)**: Efforts to make AI systems more transparent and understandable, known as \"Black Box\" demystification, are gaining traction. This trend is crucial for increasing trust and manageability in AI applications.\n - **Edge AI**: The evolution of AI processing at the edge, closer to where data is collected, enhances real-time data processing without the latency associated with data transmission to distant servers.\n - **AI Governance**: As AI becomes more pervasive, governance frameworks are being strengthened to ensure ethical, secure, and fair use of AI technologies.\n - **AI and Sustainability**: The intersection of AI with sustainability efforts is emerging as a crucial area, with AI being leveraged to tackle challenges related to climate change and resource management.\n\n**2. Breakthrough Technologies**\n - **Open Source AI Models**: The adoption of open source pretrained AI models is on the rise. These models are empowering businesses to enhance productivity and cost-efficiency by integrating them with private or real-time data. Companies like IBM are actively contributing to and utilizing these open source models.\n\n**3. Industry Impacts**\n - **Business Productivity**: Businesses across various sectors are leveraging AI to improve efficiency and reduce operational costs. The integration of AI in daily business operations is becoming commonplace, driving innovation and competitive advantage.\n - **Data and Analytics Leadership**: There is a noticeable trend of organizations consolidating roles such as chief data and analytics officers, reflecting a strategic shift towards more integrated and centralized AI leadership.\n - **Personalization and Accessibility**: For the average consumer, AI is becoming more accessible and applicable in daily life, from personalized shopping experiences to enhanced home automation.\n\n**Conclusion**\nThe landscape of AI in 2024 is marked by significant advancements and shifts towards more practical, understandable, and integrated applications. As AI technologies continue to evolve, they promise to bring profound changes to how we live and work, making it essential for businesses and individuals to stay informed and adaptable to these changes."
"**Comprehensive Analysis of AI Advancements in 2024**\n\n**1. Generative AI: Mainstream Adoption and Practical Applications**\n - In 2024, generative AI is expected to transition from a primarily tech-centric tool to a more universally accessible technology. This shift will enable everyday users to engage with AI, fostering a culture of innovation across various sectors. The proliferation of user-friendly AI applications is anticipated to democratize technology, allowing more individuals to experiment with AI-driven solutions.\n\n**2. Breakthrough Technologies: The Rise of User-Friendly AI Platforms**\n - Following the impactful launch of OpenAI's ChatGPT in late 2022, the AI landscape has witnessed rapid growth in user-friendly platforms. These platforms are designed to be intuitive, making it easier for non-technical users to leverage advanced AI capabilities. This trend is likely to continue, with more platforms emerging that simplify the integration of AI into daily tasks and business operations.\n\n**3. Industry Impact: Transformation Across Sectors**\n - The widespread adoption of generative AI is set to trigger significant transformations across the global economic landscape. Industries ranging from healthcare to finance are expected to harness the power of AI to innovate and improve efficiency. This technological shift is poised to redefine business models and operational strategies, leading to enhanced productivity and competitiveness.\n\n**4. Organizational Changes: The Evolution of AI Leadership**\n - There has been a noticeable trend in organizations reducing the number of specialized technology and data roles, such as chief data officers and chief AI officers. This shift suggests a move towards integrating AI and data analytics into broader business functions, reflecting a more holistic approach to technology management within companies.\n\n**5. Future Outlook: Potential Challenges and Opportunities**\n - As AI continues to evolve, it presents both challenges and opportunities. Ethical considerations, privacy concerns, and the need for robust regulatory frameworks are among the key challenges that need addressing. Conversely, the ongoing advancements in AI offer substantial opportunities for innovation and growth across various industries.\n\nThis analysis highlights the dynamic nature of AI development in 2024, underscoring its potential to revolutionize both technology and business landscapes. As AI becomes more embedded in everyday life, its impact is expected to expand, paving the way for new possibilities and challenges alike."

0 comments on commit 0c51b8b

Please sign in to comment.