Closed fahdmirza closed 4 months ago
Hi, Just to let you know the steps, I have git cloned your repo, installed requirements , ollama is already running at default port with mistral 7b and nomic-embed models, and then I have launched gradio app.
In browser, first I have uploaded a text file in Data Management tab and then indexed it. All good so far. I don't see anything in Indexing outputs tab though. When I run a query , it gives me error Module Not FoundError: No module named 'azure'
ok I was able to fix above error by manually installing pip install graphrag. Also global search works, local search is not working with this tool. Thanks
Hey! Thanks so much for checking this out and creating the issue. I somehow forgot to add the graphrag install in the requirements.txt when packaging this all together, it was a long night. Thank you for catching that! For the azure, I tried to clean out any dependencies for it but there might be one or two left in the imprts for me to dig out from the original Microsoft code. I am also working on fixing the local search to get it working again, it has been a bit finicky.
Local search should work now. I updated the embeddings.py, search.py and mixed-content.py in the local search dir. in the graphrag dir to handle the dim correctly! You will need to redownload the graphrag folder from this repo for the updated changes
INFO: Reading settings from ragtest/settings.yaml
creating llm client with {'api_key': 'REDACTED,len=9', 'type': "openai_chat", 'model': 'mistral:7b', 'max_tokens': 4000, 'temperature': 0.0, 'top_p': 1.0, 'request_timeout': 180.0, 'api_base': 'http://localhost:11434/v1', 'api_version': None, 'organization': None, 'proxy': None, 'cognitive_services_endpoint': None, 'deployment_name': None, 'model_supports_json': True, 'tokens_per_minute': 0, 'requests_per_minute': 0, 'max_retries': 10, 'max_retry_wait': 10.0, 'sleep_on_rate_limit_recommendation': True, 'concurrent_requests': 10}
creating embedding llm client with {'api_key': 'REDACTED,len=9', 'type': "openai_embedding", 'model': 'nomic_embed_text', 'max_tokens': 4000, 'temperature': 0, 'top_p': 1, 'request_timeout': 180.0, 'api_base': 'http://localhost:11434/v1', 'api_version': None, 'organization': None, 'proxy': None, 'cognitive_services_endpoint': None, 'deployment_name': None, 'model_supports_json': None, 'tokens_per_minute': 0, 'requests_per_minute': 0, 'max_retries': 10, 'max_retry_wait': 10.0, 'sleep_on_rate_limit_recommendation': True, 'concurrent_requests': 10}
SUCCESS: Local Search Response: While it's an intriguing concept, it's important to note that mycelium (the vegetative part of fungi) is a terrestrial organism and currently lacks the biological adaptations necessary for survival in the vacuum of space. Here's a hypothetical breakdown of how humans might use mycelium to aid in space colonization, but it's important to remember that this is speculative and far beyond our current scientific understanding and technological capabilities:
Terraforming: Mycelium could potentially play a role in the terraforming process of making other planets or moons habitable for humans. By creating bioreactors filled with mycelium, we could produce large quantities of spores that could be sent to Mars, the Moon, or other celestial bodies. Once landed, these spores could germinate and grow, breaking down inhospitable materials (like Martian regolith) and converting them into nutrients that support life.
Biological Life Support Systems: Mycelium has been shown to be effective at filtering water and air pollutants on Earth. In a space environment, mycelium could potentially be used in biological life support systems (BLSS) to purify air and water for human consumption. This would reduce the need for heavy and energy-intensive mechanical filtration systems.
Structural Materials: Mycelium has been used as a building material on Earth due to its ability to grow into complex shapes and structures. In space, mycelium could potentially be grown into lightweight, strong, and customizable habitats or infrastructure components. This would reduce the amount of materials needed for space construction and make transportation easier.
Nutritional Supplements: Mycelium is rich in various nutrients, including proteins, vitamins, and minerals. In a space environment where food resources are limited, mycelium could potentially be grown as a supplement to human diets, providing essential nutrients without the need for extensive storage or transportation of Earth-grown foods.
Adaptation: By exposing mycelium to simulated space conditions and selecting for strains that exhibit increased tolerance to these conditions, we could potentially evolve mycelium with traits that make it more resilient in space. However, this would require a significant amount of time and resources, as well as a deep understanding of the genetic mechanisms underlying these adaptations.
Biological Robots: In a highly speculative scenario, mycelium could potentially be engineered to perform specific tasks in space, such as repairing damaged equipment or exploring hazardous environments. This would involve genetically modifying mycelium to produce enzymes or other molecules that can interact with materials in specific ways, as well as developing methods for controlling and directing the growth of these engineered organisms.
In summary, while mycelium cannot currently survive in space without human intervention, it could potentially play a role in future space colonization efforts by contributing to terraforming, life support systems, structural materials, nutritional supplements, adaptation, and biological robotics. However, this would require significant advancements in our understanding of fungal biology, genetics, and engineering, as well as the development of new technologies for growing, transporting, and controlling mycelium in space.
Hi, I am trying to review this tool for my channel at https://www.youtube.com/@fahdmirza and facing multiple errors. Could we please connect as I am in middle of creating video and would appreciate the resolution please. Thanks.