Coder Social home page Coder Social logo

nasa-petal / bidara Goto Github PK

View Code? Open in Web Editor NEW
366.0 17.0 57.0 354 KB

BIDARA is a GPT-4 chatbot that was instructed to help scientists and engineers understand, learn from, and emulate the strategies used by living things to create sustainable designs and technologies using the Biomimicry Institute's step-by-step design process.

Home Page: https://bit.ly/bidara-ai

Python 100.00%

bidara's People

Contributors

4eshanb avatar bruffridge avatar chetnaagarwal avatar christoukmaji avatar rblumin24 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bidara's Issues

BDA mode improvements

BDA mode has a decent system prompt at the moment. However, we should make some improvements to the conversation. One improvement is to allow ChatGPT to respond in smaller batches instead of all at once, to improve the quality and length of responses since ChatGPT "needs tokens to think". The other is to ask ChatGPT to "check its work"

Collect the responses from ChatGPT so they can be sent all at once at the end of the series of prompts.

  1. Ask the user to input a design challenge then insert it into the following user prompt to ChatGPT-4.
Challenge - [insert user-entered challenge] (User's challenge sourced from an [online source](https://www.teachengineering.org/activities/view/cub_bio_lesson05_activity1)) 

Step 1 - Biologize: 
(ChatGPT's response) 
To biologize the concept of fish-inspired scales for morphing airplane wings, we need to understand the biological principles behind fish scales and how they enable smooth movement. Here are some key characteristics:

1. Overlapping Structure: Fish scales are composed of multiple layers that overlap each other, similar to shingles on a roof. This overlapping arrangement provides flexibility and allows for easy movement.

2. Smooth Surface: The scales have a smooth and slippery surface, which reduces friction and enables fluid motion through water. This characteristic is essential for efficient swimming.

3. Interlocking Mechanism: The scales have specialized structures that interlock with each other, forming a cohesive and protective layer. This interlocking mechanism maintains the overall integrity of the scale arrangement.

4. Flexible Joints: Fish scales have flexible joints that allow them to move independently while maintaining a continuous and overlapping pattern. These joints provide the scales with the ability to deform and adjust to the fish's body movements.

Step 2 - Adaptation to Morphing Airplane Wings:

To apply these biological principles to morphing airplane wings, engineers can develop a wing structure that mimics the fish scale arrangement. Here's how it could be achieved:

1. Overlapping Panels: Instead of traditional rigid wings, the morphing airplane wings would consist of overlapping panels that can slide over each other. These panels would have a similar overlapping arrangement as fish scales, allowing for flexibility and adaptability.

2. Low-Friction Coating: To replicate the smooth surface of fish scales, a low-friction coating or material can be applied to the wing panels. This coating would reduce friction and enable smooth movement between the panels.

3. Interlocking Mechanism: Engineers can design an interlocking mechanism between the wing panels to ensure they remain securely connected during flight. This mechanism could be inspired by the specialized structures found in fish scales that interlock and provide structural integrity.

4. Flexible Joints: The wing panels would incorporate flexible joints that enable independent movement while maintaining the overlapping pattern. These joints would allow the wing to morph and adjust its shape according to the aerodynamic requirements.

By applying these biological principles, the morphing airplane wings could achieve increased flexibility, reduced drag, and improved aerodynamic performance. The overlapping scale-like structure would allow the wings to adapt to changing flight conditions, optimizing lift, stability, and maneuverability.

Follow up with this user prompt:

How well did you perform this step? If there's anything you'd like to improve, correct, or expound on please do so.
(ChatGPT's response)
In Step 1, I provided a general description of the biological characteristics of fish scales and how they contribute to the fish's ability to move smoothly through water. However, I didn't explicitly link these characteristics to the concept of morphing airplane wings. Let's dive deeper into the adaptation process and improve the explanation:

Step 1 - Biologize:

Fish scales possess several features that can inspire the design of morphing airplane wings:

1. Overlapping Structure: Fish scales have an overlapping arrangement, forming a flexible and continuous layer. This characteristic allows for deformation and easy movement, accommodating the fish's body shape changes during swimming. Similarly, incorporating an overlapping structure in morphing airplane wings would enable flexibility and adaptability to varying flight conditions.

2. Smooth Surface: The scales of certain fish species have a smooth and streamlined surface. This smoothness reduces friction and drag as the fish moves through water. For morphing airplane wings, engineers could apply coatings or use materials that mimic the smoothness of fish scales. This would help minimize air resistance and improve aerodynamic efficiency during flight.

3. Interlocking Mechanism: Fish scales possess specialized structures that interlock with neighboring scales, providing a cohesive and protective layer. This interlocking mechanism maintains the overall integrity of the scale arrangement and ensures the scales move together during swimming motions. By incorporating an interlocking mechanism between the panels of morphing airplane wings, engineers can ensure that the panels remain securely connected while allowing for coordinated movement and deformation.

4. Flexible Joints: Fish scales have flexible joints that enable independent movement of each scale while maintaining the overlapping pattern. These joints provide the fish with the ability to adjust to body movements and perform complex maneuvers. Similarly, incorporating flexible joints into the design of morphing airplane wings would allow for individual panel movement while preserving the overall structure. This flexibility would facilitate wing shape changes, optimizing aerodynamic performance in different flight conditions.

Step 2 - Adaptation to Morphing Airplane Wings:

To adapt fish-inspired scales for morphing airplane wings, engineers would consider the following:

1. Overlapping Panels: The rigid wings of traditional airplanes would be replaced with overlapping panels that can slide over each other. These panels would mimic the overlapping arrangement of fish scales, providing flexibility and adaptability for wing morphing.

2. Low-Friction Coating: A low-friction coating or material could be applied to the wing panels to replicate the smooth and streamlined surface of fish scales. This coating would minimize air resistance and improve the wing's aerodynamic performance during flight.

3. Interlocking Mechanism: An interlocking mechanism would be integrated between the wing panels to ensure they remain securely connected. This mechanism could be inspired by the interlocking structures found in fish scales, maintaining the overall integrity of the wing structure during morphing.

4. Flexible Joints: The wing panels would incorporate flexible joints that allow for independent movement while maintaining the overlapping pattern. These joints would enable the panels to deform and adjust their shape, optimizing aerodynamic characteristics based on the flight conditions.

By incorporating these adaptations, morphing airplane wings could achieve enhanced flexibility, reduced drag, improved maneuverability, and increased aerodynamic efficiency, ultimately leading to improved flight performance. 
  1. Send this prompt to ChatGPT:
Step 2 - Discover:
(ChatGPT's response) 
Step 2 - Discover:

To further explore how nature's fish-inspired scales can be adapted for morphing airplane wings, let's delve into the specific benefits and challenges associated with this concept.

Benefits:

1. Aerodynamic Efficiency: Fish scales have evolved to reduce drag and increase hydrodynamic efficiency in water. By incorporating a similar scale-like structure into airplane wings, the overlapping panels can help minimize air resistance and improve the overall aerodynamic performance of the aircraft. The ability to morph the wing shape in response to varying flight conditions can further optimize lift and reduce drag, resulting in improved fuel efficiency.

2. Flexibility and Adaptability: Fish scales allow for independent movement and deformation, enabling the fish to maneuver through complex environments. Similarly, morphing airplane wings inspired by fish scales would offer increased flexibility and adaptability. The overlapping panels can change their shape and configuration, allowing the wings to adjust to different flight modes, such as takeoff, landing, and cruising. This adaptability can enhance maneuverability, stability, and control of the aircraft.

3. Structural Integrity: The interlocking mechanism of fish scales provides a robust and cohesive layer that protects the underlying structures. By incorporating an interlocking system between the wing panels, morphing airplane wings can maintain structural integrity during shape-changing movements. This ensures that the wings remain stable and reliable even under dynamic aerodynamic forces experienced during flight.

Challenges:

1. Engineering Complexity: Adapting fish-scale-inspired morphing wings to aircraft requires intricate engineering and design. Developing a reliable mechanism for the interlocking and sliding motion of the panels, as well as flexible joints that withstand the stresses of flight, can pose significant challenges. The materials used for the panels need to be lightweight, yet durable enough to withstand the forces encountered during flight.

2. Control and Actuation: Achieving precise control over the morphing motion of the wing panels is crucial for safe and efficient operation. Developing an effective actuation system that can control the shape-changing process in real-time, responding to pilot commands or flight conditions, requires advanced control algorithms and technologies. Ensuring the reliability and responsiveness of the actuation system is essential for the practical implementation of morphing wings.

3. Maintenance and Durability: The long-term durability and maintenance requirements of fish-scale-inspired morphing wings need to be considered. The sliding and interlocking mechanisms may be prone to wear and tear over time, requiring periodic inspection and maintenance. Additionally, the exposure to varying environmental conditions and potential impacts during flight could affect the performance and longevity of the morphing wing system.

Overall, while the concept of fish-inspired scales for morphing airplane wings offers significant benefits in terms of aerodynamic efficiency and adaptability, it also presents engineering challenges that need to be addressed. Continued research, innovation, and collaboration between biologists, engineers, and aerospace experts can lead to further advancements in this field and the eventual realization of practical morphing wing technologies.

Follow up with this user prompt:

How well did you perform this step? If there's anything you'd like to improve, correct, or expound on please do so.
(ChatGPT's response)
In Step 2, I provided an overview of the benefits and challenges associated with adapting fish-inspired scales for morphing airplane wings. However, I could further expand on the topic to provide a more comprehensive understanding. Let's delve into the details:

Step 2 - Discover:

Benefits:

1. Aerodynamic Efficiency: The scale-like structure of fish-inspired morphing wings offers the potential for improved aerodynamic efficiency. By morphing the wing shape to adapt to different flight conditions, such as changing the wing's camber or span, the aircraft can reduce drag and optimize lift generation. This leads to enhanced fuel efficiency and improved overall performance.

2. Maneuverability and Control: Morphing airplane wings can enhance maneuverability and control, allowing for increased agility and responsiveness during flight. By adjusting the wing shape, the aircraft can optimize its performance in various flight phases, such as high-speed cruising, low-speed operations, or maneuvers. This adaptability enables the aircraft to better handle different operating conditions, enhancing safety and mission capabilities.

3. Structural Integrity and Load Distribution: The overlapping panel arrangement, similar to fish scales, can provide structural integrity to morphing wings. This design allows the load to be distributed across multiple panels, reducing stress concentrations and enhancing overall strength. The interlocking mechanism between panels ensures a cohesive structure, maintaining stability and minimizing the risk of structural failure.

Challenges:

1. Complex Engineering: Implementing fish-scale-inspired morphing wings requires advanced engineering techniques and materials. Designing and manufacturing the overlapping panels, interlocking mechanisms, and flexible joints necessitate sophisticated engineering solutions. The development of lightweight, durable, and reliable materials that can withstand the aerodynamic forces and stresses encountered during flight is a significant challenge.

2. Actuation and Control Systems: Achieving precise and real-time control over the morphing motion of the wing panels is crucial for safe and efficient operation. Developing effective actuation systems, such as smart materials or mechanical actuators, requires sophisticated control algorithms and integration. The actuation system should be responsive, reliable, and capable of adapting to various flight conditions and pilot inputs.

3. Maintenance and Durability: Fish-inspired morphing wings may introduce maintenance and durability considerations. The sliding and interlocking mechanisms could be prone to wear and tear over time, requiring regular inspection and maintenance. Additionally, the exposure to environmental factors, such as temperature variations and moisture, can affect the performance and longevity of the morphing wing system. Ensuring long-term durability and reliability is a challenge that needs to be addressed.

By addressing these challenges through ongoing research and collaboration between biologists, engineers, and aerospace experts, the development and implementation of fish-scale-inspired morphing airplane wings can advance. Continued innovation and technological advancements will be crucial in overcoming these hurdles and unlocking the full potential of this concept in future aircraft design.

Overall, the concept of fish-inspired scales for morphing airplane wings holds promise for enhancing aerodynamic performance, maneuverability, and control. However, practical implementation requires addressing engineering complexities, developing robust actuation systems, and ensuring long-term durability and maintenance considerations are met. 
  1. Send this prompt to ChatGPT:
Step 3 - Abstract the first biological strategy from Step 2:
(ChatGPT's response)
Step 3 - Abstract the first biological strategy from Step 2:

The first biological strategy from Step 2 is the use of an overlapping structure, inspired by fish scales, to enhance the morphing capabilities of airplane wings. This strategy involves the arrangement of overlapping panels that can slide over each other to adapt the wing shape and optimize aerodynamic performance.

Abstracted Biological Strategy:
Overlapping Structure for Wing Morphing

Description:
The abstracted biological strategy involves incorporating an overlapping structure into morphing airplane wings. Inspired by the overlapping arrangement of fish scales, the wings consist of multiple panels that can slide over each other to change the wing shape. This overlapping structure enhances the wing's flexibility, adaptability, and aerodynamic efficiency.

Key Features:
1. Overlapping Panels: The wings are composed of multiple panels that overlap each other, similar to the shingle-like arrangement of fish scales. The overlapping panels provide the wing with the ability to change shape and adapt to different flight conditions.

2. Sliding Motion: The panels can slide over each other, allowing the wing to undergo morphing and adjust its configuration. This sliding motion enables the wing to modify its camber, span, or twist, optimizing lift generation and reducing drag.

3. Flexibility and Adaptability: The overlapping structure grants the wing increased flexibility and adaptability. The panels can deform and adjust their positions to accommodate various flight modes, such as takeoff, landing, or cruising. This flexibility enhances maneuverability, stability, and control of the aircraft.

4. Structural Integrity: The overlapping panels contribute to the wing's structural integrity. The arrangement distributes aerodynamic loads across multiple panels, reducing stress concentrations and enhancing overall strength. The overlapping structure ensures stability and minimizes the risk of structural failure.

Advantages:
- Improved Aerodynamic Efficiency: The overlapping structure reduces drag and optimizes lift generation, resulting in improved aerodynamic efficiency and reduced fuel consumption.
- Enhanced Maneuverability: The wing's adaptability allows for optimized performance during different flight phases, enhancing maneuverability and control of the aircraft.
- Structural Robustness: The overlapping arrangement and load distribution across panels enhance the wing's structural integrity and resilience to aerodynamic forces.

Limitations:
- Engineering Complexity: Implementing the overlapping structure requires sophisticated engineering techniques and materials to ensure smooth sliding motion, interlocking mechanisms, and durability.
- Actuation and Control: Achieving precise control over the sliding motion of the panels can be challenging, requiring advanced actuation systems and control algorithms.
- Maintenance Considerations: The sliding and interlocking mechanisms may require periodic maintenance and inspection to ensure their proper functioning over time.

This abstracted biological strategy of incorporating an overlapping structure into morphing airplane wings provides a foundation for designing wings that can change shape and optimize aerodynamic performance. By overcoming the associated challenges, engineers can develop innovative wing designs that enhance efficiency, maneuverability, and structural integrity in future aircraft. 

Follow up with this user prompt:

How well did you perform this step? If there's anything you'd like to improve, correct, or expound on please do so.
(ChatGPT's response)
In Step 3, I provided an abstracted description of the first biological strategy from Step 2, which is the use of an overlapping structure for wing morphing. I believe the abstracted strategy effectively captures the key features, advantages, and limitations of incorporating an overlapping structure into morphing airplane wings. However, I can provide further elaboration and examples if desired. 

If you have any specific areas you would like me to expand on or any additional questions, please let me know, and I'll be happy to provide more information. 
  1. Send these 2 prompts to ChatGPT (N times, want N to be equal to the number of strategies returned from ChatGPT from Step 2.):
Step 3 - Abstract the next biological strategy from Step 2:
(ChatGPT's response)
Step 3 - Abstract the next biological strategy from Step 2:

The next biological strategy from Step 2 involves the application of a low-friction coating or material to the morphing airplane wings, inspired by the smooth surface of fish scales. This strategy aims to reduce friction and enhance the aerodynamic performance of the wings.

Abstracted Biological Strategy:
Low-Friction Coating for Aerodynamic Enhancement

Description:
The abstracted biological strategy focuses on applying a low-friction coating or material to the surface of morphing airplane wings, drawing inspiration from the smooth and streamlined surface of fish scales. This coating minimizes friction and improves the overall aerodynamic performance of the wings.

Key Features:
1. Low-Friction Surface: The wings are coated with a specialized material or coating that exhibits low friction properties. This coating reduces air resistance and drag, allowing the aircraft to move through the air more efficiently.

2. Streamlined Design: The low-friction coating or material mimics the smooth surface of fish scales, optimizing the airflow over the wing's surface. This streamlined design helps in reducing turbulence and enhancing laminar flow, which is beneficial for reducing drag and improving lift-to-drag ratio.

3. Enhanced Glide Performance: The low-friction surface enables the wings to glide through the air with minimal resistance. This enhancement in glide performance results in improved fuel efficiency, extended range, and increased flight endurance.

4. Surface Protection: The low-friction coating also provides protection to the wing surface from environmental factors such as moisture, debris, and corrosion. It helps maintain the integrity of the wing and reduces maintenance requirements.

Advantages:
- Reduced Drag: The low-friction coating decreases air resistance and drag, leading to improved aerodynamic efficiency and reduced fuel consumption.
- Enhanced Flight Efficiency: The streamlined design and reduced friction optimize the wing's performance, enabling the aircraft to fly more efficiently and achieve higher speeds.
- Increased Range and Endurance: The improved glide performance and reduced drag contribute to extended range and increased flight endurance, allowing for longer flights or improved mission capabilities.

Limitations:
- Coating Durability: The durability and longevity of the low-friction coating need to be ensured, as exposure to environmental conditions, impacts, and abrasion during flight may affect its effectiveness over time.
- Application Challenges: Applying and maintaining the low-friction coating requires appropriate techniques and materials, as well as periodic inspection and potential reapplication to maintain its performance.

This abstracted biological strategy of utilizing a low-friction coating for aerodynamic enhancement offers a valuable approach to reduce drag and optimize the performance of morphing airplane wings. By addressing the limitations and developing robust coating solutions, engineers can enhance the efficiency and range of future aircraft designs. 

Follow up with this user prompt:

How well did you perform this step? If there's anything you'd like to improve, correct, or expound on please do so.
(ChatGPT's response)
In Step 3, I provided an abstracted description of the next biological strategy from Step 2, which involves the application of a low-friction coating for aerodynamic enhancement inspired by the smooth surface of fish scales. I believe the abstracted strategy effectively captures the key features, advantages, and limitations of incorporating a low-friction coating on morphing airplane wings. However, I can provide further elaboration or examples if desired.

If there are any specific areas you would like me to expand on or any additional questions you have, please let me know, and I'll be happy to provide more information. 
  1. Send all the collected responses from ChatGPT back to Discord.

retrieval augmented ChatGPT

Use retrieval methods (eg. vector embeddings similarity, or BM25) to find information from journal articles to provide useful context to improve the outputs from ChatGPT for the Discover and Abstract steps of BDA mode.

Use of existing API based search capabilities are preferred rather than building one from scratch if they work well. Available search APIs are listed here: https://github.com/nasa-petal/PeTaL/wiki/BID-resources

Brief description of retrieval augmentation:
https://youtu.be/bZQun8Y4L2A?t=1974

Embeddings for all the papers in Arxiv.org
https://alex.macrocosm.so/download

Medium article showing how to use some existing tools that can do something similar:
https://medium.com/a-academic-librarians-thoughts-on-open-access/using-large-language-models-like-gpt-to-do-q-a-over-papers-ii-using-perplexity-ai-15684629f02b

https://github.com/openai/openai-cookbook/blob/main/examples/Question_answering_using_embeddings.ipynb

This may be helpful:
https://twitter.com/danshipper/status/1615901860786749440
He used this to load his reference library:
https://github.com/jerryjliu/gpt_index

This is another example that may be useful:
https://every.to/superorganizers/i-trained-a-gpt-3-chatbot-on-every-episode-of-my-favorite-podcast

Enable BIDARA to perform the emulate step of the biomimicry process

https://toolbox.biomimicry.org/methods/emulate/

Maybe add instructions for it to the BDA mode system prompt and use a similar "step-by-step" prompt approach like suggested in #1

Use GenAI to do Q&A over paper full-text and summarization.

Feedback from engineer re: What’s missing in the current tools?,
"Challenge for many engineers is they’re not trained biologists, so getting the next level of system performance information (like for the kingfisher beak that inspired a bullet train) is challenging. Does the system performance information for that bird actually exist? Who’s researching it? Need contact info for the biologists doing the research. I can google the beak, but if I want more metrics, where do I go? Where can you get a 3D scan of the bird, likely next step for an engineer?"

"Who/where are the companies researching/manufacturing ventilation products (R&D depts and contact info), academic partners (to codevelop tech with)."

"improve understanding of papers by reaching out to the authors."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.