Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
"model
- Page 1
Re: Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
2 Days Ago
by Harini sri
… have any suggestions for handling such cases? Also the symbol &
quot
;-&
quot
; is not being detected by extracting the values ![Screenshot_from_2024-05…
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
… an object of the langChain `HuggingFacePipeline` class. ``` pipe = pipeline(&
quot
;text-generation&
quot
;,
model
=
model
, tokenizer=tokenizer, max_new_tokens=1000) hf = HuggingFacePipeline(pipeline=pipe) ``` The…
Summarizing YouTube Video Transcriptions Using Distil Whisper and LLM
Programming
Computer Science
1 Week Ago
by usmanmalik57
… it into segments, and generates transcriptions. ``` pipe = pipeline( &
quot
;automatic-speech-recognition&
quot
;,
model
=whisper_model, tokenizer=processor.tokenizer, feature_extractor=processor.feature_extractor, max_new_tokens=128…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
4 Weeks Ago
by usmanmalik57
…get('OPENAI_KEY2') llm = ChatOpenAI( openai_api_key = openai_key ,
model
= 'gpt-4', temperature = 0.5 ) ```… create_sql_agent(LLM, db=db, agent_type=&
quot
;openai-tools&
quot
;, verbose=True) response = agent_executor.…
'30% of Activities Performed by Humans Could Be Automated with AI'
Community Center
2 Weeks Ago
by Johannes C.
… experts can teach virtual assistants. With reusable components and public
model
access, people can construct exactly the intelligent help they need… exponentially more value, coordinating interdependent goals. A conservation agent could
model
sustainability plans, collaborating with a drone agent collecting wildlife data…
DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
… of using DaniWeb's content to train an A.I.
model
, with all the questions that are marked as Solved. It… can be an optional feature, like &
quot
;Ask DaniWeb AI&
quot
;. When a user asks a question, the DaniWeb AI…
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by Dani
… ChatGPT nor do I know how to train an AI
model
. From my understanding, the API costs money, although it does…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
…vector index. ``` llm = ChatOpenAI( openai_api_key = openai_key ,
model
= 'gpt-4', temperature = 0.5 ) retriever =… ChatPromptTemplate.from_messages([ MessagesPlaceholder(variable_name=&
quot
;chat_history&
quot
;), (&
quot
;user&
quot
;, &
quot
;{input}&
quot
;), (&
quot
;user&
quot
;, &
quot
;Given the above conversation, …
Re: Bouncing Balls: Creating a new ball when two balls collide
Programming
Software Development
2 Weeks Ago
by vortex_1
… primary goal of the bouncing balls simulation is to accurately
model
and demonstrate the physics of ball collisions, then adding a…
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Week Ago
by aishamushtaq
very helpful
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
The question was inspired from seeing [news](https://blogs.nvidia.com/blog/chat-with-rtx-available-now/) and [videos](https://www.youtube.com/watch?v=UKURI5JSIts) on Chat with RTX.
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by Dani
That looks interesting. It’s not relevant to us because we would need an expensive GTX video card, Windows computer, and there’s no API … but it looks intriguing :)
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
An RTX 30 or 40 series card with 8GB of VRAM. ~$299. There is no support with Wine a user has reported. There was a link to a [python api](https://github.com/rpehkone/Chat-With-RTX-python-api). That was just an example and a thought, but not limited there. There's creative solutions. Having only users with an RTX card can use the feature, …
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by Dani
Pardon my cluelessness here. A $300 video card can efficiently perform complex AI tasks against DaniWeb’s entire database in real time? Missed the link to the Python API.
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
I have yet to try it or find it's limitations. Trying to free up some space. Those were the minimum requirements, plus 16GB of RAM and ~100GB free space. I also don't know how large a dataset for DaniWeb would be. Will know more later.
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
It indeed seems to be working. The interface is all done in the browser, on your localhost, 127.0.0.1:43905/?__theme=dark, and I stripped it down to just the message box. Just have to gather more data, and it seems good. Took ~50 minutes to get installed. The dataset can be a simple text file with a space between each topic thread.
Re: DaniWeb Auto Answer A.I. feature
Community Center
Meta DaniWeb
3 Weeks Ago
by toneewa
I did some sample testing, and parsed a thread topic for the dataset. Reducing the footprint from 220kb to 26.5kb. All in 0.43 seconds. It doesn't use any API. Just the patterns I saw in the code. It took another 6 seconds to embed too Chat with RTX. Then, not deducting for the deleted threads, this could be a lot smaller, and quicker than …
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
…&
quot
;, &
quot
;v_proj&
quot
;, &
quot
;gate_proj&
quot
;, &
quot
;up_proj&
quot
;, &
quot
;down_proj&
quot
;], task_type = &
quot
;CAUSAL_LM&
quot
;, ) ``` Finally, you can create an object of the `SFTTrainer` class and pass the Gemma
model
…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
…, temperature): messages = [ {&
quot
;role&
quot
;: &
quot
;user&
quot
;, &
quot
;content&
quot
;: input_text}, ] encodeds = tokenizer.apply_chat_template(messages, return_tensors=&
quot
;pt&
quot
;) model_inputs = encodeds.to(device) generated_ids =
model
.generate(model_inputs, max_new_tokens…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Months Ago
by usmanmalik57
… Buffets Investment Pshychology?&
quot
; final_response = generate_response(query) print(&
quot
;===================================&
quot
;) print(&
quot
;RESPONSE FROM RAG
MODEL
&
quot
;) print(&
quot
;===================================&
quot
;) print(final_response.split(&
quot
;<end>&
quot
;)[1]) ``` **Output…
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
2 Months Ago
by usmanmalik57
… = AutoImageProcessor.from_pretrained(model_name) # import table transformer
model
for table detection
model
= TableTransformerForObjectDetection.from_pretrained(model_name, revision=&
quot
;no_timm&
quot
;) ``` Next, we define the `detect_table()` function…
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
…. tweet: {}&
quot
;&
quot
;&
quot
;.format(tweet) sentiment = client.chat.completions.create(
model
= &
quot
;gpt-4&
quot
;, temperature = 0, max_tokens = 10, messages=[ {&
quot
;role&
quot
;: &
quot
;user&
quot
;, &
quot
;content&
quot
;: content} ] ) return…
How Do I address ERROR: access violation writing 0x0000000000005140,
Programming
Web Development
1 Month Ago
by A_957
… environment variable or default to a specific
model
model
= GPT4All('nous-hermes-llama2-13b.Q4_0…info(f&
quot
;Received user input: {user_input}&
quot
;) # Log the received input try: with
model
.chat_session('You…logging.error(f&
quot
;Error generating
model
response:'{user_input}': {e}&
quot
;) return &
quot
;Error processing your request.&
quot
; @app.…
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… following output shows that the
model
correctly returns the category for the lowest-priced ticket. ``` query = &
quot
;What is the category for… following, and you will see that the
model
will generate a correct response. ``` query = &
quot
;What is the maximum price for category…
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… to our LLM
model
. ``` from langchain.chains.combine_documents import create_stuff_documents_chain prompt = ChatPromptTemplate.from_template(&
quot
;&
quot
;&
quot
;Answer the following … games?&
quot
; generate_response(query) ``` **Output:** ``` The lowest ticket price for tennis games is €30. ``` The
model
responded correctly…
PDF Image Table Extractor Web App with Google Gemini Pro and Streamlit
Programming
Computer Science
2 Months Ago
by usmanmalik57
… os.environ['GOOGLE_APPLICATION_CREDENTIALS'] = r&
quot
;PATH_TO_JSON_API_FILE&
quot
;
model
= GenerativeModel(&
quot
;gemini-pro-vision&
quot
;) config={ &
quot
;max_output_tokens&
quot
;: 2048, &
quot
;temperature&
quot
;: 0, &
quot
;top_p&
quot
;: 1, &
quot
;top_k&
quot
;: 32 } def generate…
Re: Using ChatGPT to Interact with Third-Party Applications in Python
Programming
Computer Science
2 Months Ago
by catherine_11
Integrating ChatGPT with third-party applications in Python involves utilizing [OpenAI's API](http://www.google.com). Begin by obtaining API credentials, then craft Python scripts to send requests and process responses. Adhere to OpenAI's documentation for optimal integration, ensuring secure and efficient interaction with the ChatGPT
model
.
Odoo : report creation from JSON data
Programming
Web Development
2 Months Ago
by codewasher
… doing this. I have my custom module, I created a
model
and xml file inside it, thats I have done so…
Re: ASUS Laptops - my experience
Hardware and Software
1 Month Ago
by toneewa
Some information left out is the actual name/
model
of laptop, hard drive, and whether or not it was …
Re: ASUS Laptops - my experience
Hardware and Software
1 Month Ago
by rproffitt
…'ve been lucky with them. OK, there is a &
quot
;thing&
quot
; about some models where you have to install a media… recently. I can't offer much more without the full
model
number. For Intel based laptops I usually try the Intel…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Forums
Top Members
Meet People
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC