Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
define
- Page 1
'We'll Know We Have AGI When >50% of the GDP is Generated by AI'
Community Center
3 Days Ago
by Johannes C.
… Scodary:* Human intelligence isn't understood well enough to uncontroversially
define
tasks or tests that span the range of the human… sense, and all sensory modalities, it's even harder to
define
AGI via a battery of tests. Instead, I prefer an…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
3 Weeks Ago
by usmanmalik57
… straightforward. We create an object of the `ChatOpenAI` LLM and
define
a `retriever` that will retrieve the documents that match our… command-line application for question-answering. To do so, we
define
an empty `chat_history` list and the `generate_response_with_memory()` method that accepts…
Summarizing YouTube Video Transcriptions Using Distil Whisper and LLM
Programming
Computer Science
1 Week Ago
by usmanmalik57
… ) whisper_model.to(device) processor = AutoProcessor.from_pretrained(model_id) ``` Next, we will
define
a pipeline that takes the audio file as input, preprocess… Mistral-7B model for summarization. To do so, we will
define
the `generate_response()` method, which takes the input text, the number…
'30% of Activities Performed by Humans Could Be Automated with AI'
Community Center
3 Weeks Ago
by Johannes C.
… around. AGI in most contexts is a term used to
define
any form of artificial intelligence that can understand, learn, and…
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
2 Weeks Ago
by usmanmalik57
… The first step in a simple RAG application is to
define
the prompt that receives user input and the context from…
Re: Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
1 Week Ago
by Harini sri
Hi, Thank you so much for the above code. Its giving better results compared to other libraries. I have few questions. In some tables, I have common column name for three columns and further I have sub columns like below.... in these cases the tables are not getting extracted properly...Do you have any suggestions for handling such cases? Also …
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Weeks Ago
by aishamushtaq
very helpful
Extract Tabular Data from PDF Images using Hugging Face Table Transformer
Programming
Computer Science
2 Months Ago
by usmanmalik57
…model_name = "microsoft/table-transformer-detection" #
define
image preprocessor for table transformer image_processor = AutoImageProcessor.from_pretrained(model_name… revision="no_timm") ``` Next, we
define
the `detect_table()` function that accepts the input …
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… LLM. ``` retriever = vector.as_retriever() retrieval_chain = create_retrieval_chain(retriever, document_chain) ``` We
define
a function, `generate_response(),` which accepts a user's input query…` attribute to store our previous chat. We will also
define
`history_retriever_chain`, which takes the chat template we defined earlier and…
GCC Fails to Recognize Parameters
Programming
2 Months Ago
by snah19
…) return h->priv_data; return NULL; } #
define
OFFSET(x) offsetof(URLContext,x) #
define
E AV_OPT_FLAG_ENCODING_PARAM #
define
D AV_OPT_FLAG_DECODING_PARAM static const AVOption options[] = { // L57…
Fine Tuning Google Gemma Model for Text Classification in Python
Programming
Computer Science
2 Months Ago
by usmanmalik57
….from_pandas(dataset) final_dataset = dataset.train_test_split(test_size=0.2) ``` Next, we
define
a formatting function that converts the dataset into a format… Set ### To test the model on the complete dataset, we
define
the `predict_sentiment()` function that accepts a text review, formats it…
Claude 3 Opus Vs. Google Gemini Vs. GPT-4 for Zero-Shot Text Classification
Programming
Computer Science
1 Month Ago
by usmanmalik57
… to the `model.generate_content()` method. In the following script, we
define
the `find_sentiment_gemini()` function, which accepts a tweet and returns its… API key](https://platform.openai.com/api-keys). Next, we
define
the `find_sentiment_gpt()` function, which internally calls the `OpenAI.chat.completions…
Retrieval Augmented Generation (RAG) with Google Gemma From HuggingFace
Programming
Computer Science
2 Months Ago
by usmanmalik57
… = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto") ``` Finally, we will
define
the `generate_response()` function that accepts a text query, generates a…
7 NLP Tasks to Perform for Free in Python with Mistral 7b LLM
Programming
Computer Science
1 Month Ago
by usmanmalik57
… with Mistral. ## 1. Question Answering with Mistral 7b We will
define
a general purpose function `generate_response()` that accepts the following parameters…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Month Ago
by usmanmalik57
…( openai_api_key = openai_key , model = 'gpt-4', temperature = 0.5 ) ``` Next, we
define
a `get_db_response` function that accepts the database object and the…
Re: What criteria define the best digital marketing company?
Digital Media
Digital Marketing
2 Months Ago
by Emmanes11
It's like this, short and very informative. Totally agree.
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Month Ago
by Adolfo_1
…. Summary: In <head> I have this php:
define
("BASE_URL", "http://localhost/mysite/"); if($mod_rewrite…;, "video/");
define
("URL_YOUTUBE", "youtube/");
define
("URL_PUBLISHER", "publisher/");
define
("URL_SEARCH", "…
Re: Htaccess Problem Url Friendly
Programming
Web Development
1 Month Ago
by Adolfo_1
… values for BASE_URL? In Admin config.php // Defining base url
define
("BASE_URL", "http://localhost/mysite/"); > What…`? BASE_URL //= http://localhost/mysite/ READ_LEX //= readlex.php?slug= My mistake
define
("READ_LEX", "readlex.php?slug="); // this OK…
Re: GCC Fails to Recognize Parameters
Programming
2 Months Ago
by Reverend Jim
I can't offer any suggestions other than to just download the compiled app for your system instead of building it yourself.
Re: GCC Fails to Recognize Parameters
Programming
2 Months Ago
by rproffitt
Here's another problem. When we change the OS not only must we setup the compiler, environment and such but sometimes an OS API could be deprecated or removed. You made mention of a possible OS change so that's a possibility. You obtained this code from somewhere. Go back there and see if they updated it for your new OS.
Re: GCC Fails to Recognize Parameters
Programming
1 Month Ago
by toneewa
While I haven't used DJGPP for a couple decades, I decided to install the ffmpeg library and do a test program another way. For me, the declarations worked changing: #include "os_support.h" #include "avformat.h" #include "internal.h" #if CONFIG_NETWORK #include "network.h" #…
Re: SiteShow -- Create a slideshow of web pages
Programming
Web Development
1 Month Ago
by PROSYS_1
wow.. its working fine... very useful for me to complete my task.. thanks
#define ID_...?
Programming
Software Development
16 Years Ago
by kv79
#
define
ID_FILE_EXIT 40001 #
define
ID_FILE_OPEN 40002 And all other things like this which have these number .Which number i can use for my own ID 's ? And where i can find all of this? I try a MSND but it took me too much time so i ...?
Define script to parse logs for keywords a
Hardware and Software
Linux and Unix
11 Years Ago
by dihmen
Define
script to parse logs for keywords a
define linked list called students in data struct C++
Programming
Software Development
9 Years Ago
by Sdam
define
linked list called student name number address and the following …
Define blog, article & press release?
Digital Media
6 Years Ago
by webguru_1
Define
blog, article & press release?
#define
Programming
Software Development
10 Years Ago
by pooh1234qwerty
#include<stdio.h> #
define
CH char*; int main(){ CH a,b; printf("%d %d\n",sizeof(a),sizeof(b)); return 0; } here the o/p is 4 1. why isnt b also of type char*..??
Re: #define ID_...?
Programming
Software Development
16 Years Ago
by kv79
… who will give me information what numbers are enable to
define
but not to have a warning how i had a… might know how to use this. Where he finds this? #
define
ID_FILE_EXIT 40001 #
define
ID_FILE_OPEN ....
Re: #define ID_...?
Programming
Software Development
16 Years Ago
by Nick Evan
You can use any number for your own ID's [CODE]#
define
MY_ID 40001[/CODE] This means that MY_ID = 40001, not that 40001 = MY_ID. [QUOTE]I try a MSND but it took me too much time so i ...?[/QUOTE] So you ...? Niek
Re: #define ID_...?
Programming
Software Development
16 Years Ago
by kv79
… can use any number for your own ID's [CODE]#
define
MY_ID 40001[/CODE] This means that MY_ID = 40001, not that…
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