Comments (2)
i think its because we currently hard code the task to be text-generation (https://github.com/hwchase17/langchain/blob/e48e562ea5041b7f950435c82245b3bc201ac2b1/langchain/llms/huggingface_hub.py#L66) and flan is text2text-generation
will expose a flag to change that tonight!
from langchain.
thanks for the fix. This might be unrelated, but version 0.10.0 is not picking up the HF API token from the environment variable (the earlier version did with the same code); passing it in as an argument still works.
from langchain.
Related Issues (20)
- openai model always includes the input prompt in its output
- LLMGraphTransformer giveback empty nodes and relationships ( with gpt-4o ) HOT 1
- Incorrect passing of scores for sorting in CrossEncoderReranker HOT 3
- DOC: <Please write a comprehensive title after the 'DOC: ' prefix> HOT 3
- 91 Club Hack Mod APK 6886 | Download latest version for Android 2024
- langchain agents executor throws: assert generation is not None HOT 4
- 'error': {'message': "Missing parameter 'tool_call_id': messages with role 'tool' must have a 'tool_call_id'
- The FAISS.from_documents function called many times, It'll cause memory leak. How to destroy the object? HOT 1
- DOCS: Split integrations/llm_cache page into separate pages
- [BUG] langchain-openai - max_tokens - 2 confirmed bugs HOT 11
- DOC: How to add human approval in agent tools?
- DOC: Tutorial - Build a Chatbot - Gemini error 400 Please ensure that multiturn requests alternate between user and model HOT 1
- Getting langsmith module not found error whenever running langchain Runnable invoke / batch()
- SharepointLoader not working as intended despite latest merge 'propagation of document metadata from O365BaseLoader' HOT 1
- PromptTemplate.input_types is ignored on validation
- AttributeError: 'AzureOpenAI' object has no attribute 'bind_tools' HOT 1
- Langchain YouTube audio loader duplicating transcripts
- ChatDatabricks can't stream response: "KeyError: 'content'" HOT 1
- unable to install langchain-google-genai in python 3.9.0
- `AzureAIDocumentIntelligenceLoader` throws 404 Resource not found error
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 langchain.