Comments (3)
To address the issue with the ModuleNotFoundError
for guidance.llms
and update the documentation accordingly, you'll need to make a few changes reflecting the latest package structure. The GuidancePydanticProgram
class has been moved and is now accessible under llama_index.legacy.program.guidance_program
. When updating the documentation, ensure it instructs users to import from this new location.
Additionally, the documentation should explain that GuidancePydanticProgram
is designed for use with guidance LLMs, detailing how to instantiate the class with an output class of type BaseModel
, a prompt template string, and an optional guidance LLM instance. It's also crucial to mention the requirement for the guidance
package, guiding users to install it if they encounter an ImportError.
For contributing these updates, refer to the CONTRIBUTING.md
file in the LlamaIndex repository. This involves forking the repository, making your changes in the fork, and then submitting a pull request with your updates.
For more detailed guidance, including example code and further instructions on contributing, you can check the documentation and contribution guidelines directly in the repository.
Details
Sources
- [Bug]: Failing Structured Output Extraction with Guidance Pydantic Program
- [Bug]: No module named 'llama_index.core.llms.llama_utils'
- llama-index-integrations/program/llama-index-program-guidance/llama_index/program/guidance/init.py
- llama-index-legacy/llama_index/legacy/program/guidance_program.py
- llama-index-integrations/program/llama-index-program-guidance/llama_index/program/guidance/base.py
- docs/docs/CONTRIBUTING.md
- llama-index-legacy/CONTRIBUTING.md
- CONTRIBUTING.md
- llama-index-core/CONTRIBUTING.md
About Dosu
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
To continue the conversation, mention @dosu.
from llama_index.
Hey there, @ubervincent! 👋 I'm Dosu, a friendly bot here to lend a hand with bugs, answer your questions, and guide you on your way to becoming a contributor. I'm like the digital helper you never knew you needed while you wait for a human maintainer to swing by. I'll be diving into your issue about the guidance in the Pydantic Program doc and will get back to you with a solution shortly. Hang tight! 🤖🛠
from llama_index.
Likely the guidance package has updated.
Very open to contributions to update the notebook
from llama_index.
Related Issues (20)
- [Documentation]: PropertyGraph Missing image and bad link HOT 1
- [Bug]: NotImplementedError: Messages passed in must be of odd length while using chat_mode="react" HOT 8
- [Bug]: Refine's GetResponseEndEvent striping out first char of 'response' HOT 1
- [Bug]: GoogleDriveReader still save token to disk after is_cloud arg set to True HOT 2
- [Question]: How to specify datatype Float16 of embeddings in Milvus vector store? HOT 1
- [Bug]: Connection with chromadb (ChromaVectorStore) returns a type error HOT 7
- [Question]: Recommended method to build a stable Docker image with Llamaindex HOT 4
- [Bug]: Persisting vectors in MongoDB (Cosmos DB) HOT 5
- [Bug]: Streaming Response doesn't work if verbose is on for SQLAutoVectorQueryEngine HOT 2
- [Question]: Why do I keep getting this WARNING? HOT 5
- [Documentation]: Property Graph Index HOT 5
- [Bug]: HOT 7
- [Bug]: value is not a valid dict (type=type_error.dict) HOT 5
- [Question]: How to set a default prompt tempalte for a model? HOT 2
- [Question]: Could we add OpenSearch to the DocStore and IndexStore catalog? HOT 1
- [Question]: If manually adding nodes and triplets, what is the role of the chunk of text encapsulated in node? HOT 2
- [Documentation]: The GIF in the Unify Integration demo isn't displayed HOT 9
- [Bug]: ValueError: "AzureOpenAIMultiModal" object has no field "callback_manager" HOT 16
- [Question]: Which similarity Metric is used to retrieve Chunks in RAG operations HOT 2
- [Question]: Subquestion query engine and AzureOpenAIMultiModal HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from llama_index.