Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 1,000 results for
invoke
- Page 1
Paris Olympics Chatbot- Get Ticket Information Using Chat-GPT and LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
… output_parser = StrOutputParser() chain = prompt | llm | output_parser result = chain.
invoke
( {"assistant": "You are a comedian", "…the final response. ``` def generate_response(query): response = retrieval_chain.
invoke
({"input": query}) print(response["answer"]) …
Paris Olympics Ticket Information Chatbot with Memory Using LangChain
Programming
Computer Science
2 Months Ago
by usmanmalik57
… = create_retrieval_chain(history_retriever_chain, document_chain) result = retrieval_chain.
invoke
({ "chat_history": chat_history, "input… chat_history = [] def generate_response_with_memory(query): result = retrieval_chain.
invoke
({ "chat_history": chat_history, "input":…
Retrieval Augmented Generation with Hugging Face Models in LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
… = create_retrieval_chain(retriever, document_chain) ``` Finally, you can call the `
invoke
()` method on the retrieval chain to get customized responses based…model's reply. ``` def generate_response(query): response = retrieval_chain.
invoke
({"input": query}) return response["answer"] query…
Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
2 Months Ago
by usmanmalik57
…processes the input query. Finally, you can call the `
invoke
()` method to run the query via the agent. ``` …agent_type="openai-tools", verbose=True) response = agent_executor.
invoke
(query) return response ``` ## Generating Response from PostgreSQL Database Generating…
Question Answering with YouTube Videos Using RAG in LangChain
Programming
Computer Science
1 Month Ago
by usmanmalik57
…retrieval_chain = create_retrieval_chain(history_retriever_chain, document_chain) result = retrieval_chain.
invoke
({ "chat_history": [], "input":… chat_history = [] def generate_response_with_memory(query): result = retrieval_chain.
invoke
({ "chat_history": chat_history, "input":…
Re: Using Natural Language to Query SQL Databases with Python LangChain Module
Programming
Computer Science
1 Month Ago
by aishamushtaq
very helpful
Invoke?
Programming
Software Development
8 Years Ago
by James_43
… explain to me the purpose or reasons for using Dispatcher.
Invoke
? I am getting the error: *The calling thread cannot access… Google search suggested that was due to not using Dispatcher.
Invoke
(they also said it was a common problem with newbies…
Re: Invoke?
Programming
Software Development
8 Years Ago
by JOSheaIV
Anytime you need to
invoke
, it's because you are trying to access a piece … straight out of the box. Because of this, you MUST
Invoke
, requesting from the other thread the right to use its…
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by nick.crane
…are invoking on the UpBox class. This causes the
invoke
to execute on the thread that the UpBox is created…. To update the listbox you should
invoke
on the listbox. Try this. [CODE] public void UpdateBox…(ListBox list, string text) { list.
Invoke
(new Box(Box2),list,text); //<-- call…
Invoke in Custom Class
Programming
Software Development
13 Years Ago
by lelejau
….Add(text); } public void UpdateBox(ListBox list, string text) { this.
Invoke
(new Box(Box2),list,text); } } [/code] Now, as I'm… a thread, I'd have to use
Invoke
method to insert items in a ListBox.
Invoke
doesnt work. Anyone can give me…
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by Mitja Bonca
…(value); //clearing textBox on form1: this.textBox1.
Invoke
(new MyDelegate(ClearingTextBox), new object[] { null });…InitializeComponent(); } public void DoWork(string msg) { this.listBox1.
Invoke
(new MyDelegate(PopulatingListBox), new object[] { msg }); } …
Re: Invoke problem
Programming
Software Development
13 Years Ago
by Ketsuekiame
… if any exceptions are thrown. 2. You're calling the
invoke
on the listView control. Try calling it on the form… [icode]if(this.listView1.InvokeRequired)[/icode] and [icode]this.listView1.
Invoke
(TheDelegate, items);[/icode] Use [icode]if(this.InvokeRequired)[/icode] and…
Invoke and threads
Programming
Software Development
16 Years Ago
by Nemoticchigga
…Void NameChangeCallbackFn(System::String^ name) { //if (this->InvokeRequired) //{ //
Invoke
(gcnew SendStringDelegate(this, &WCS::MainForm::NameChangeCallbackFn)); this->label1…the error //} }[/CODE] I know I have to use
invoke
, but I dont know how to implement it. Any …
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by lelejau
…() procedure, should insert the Thread Started! text into it. Using
Invoke
, because I'm this will be executed inside a diffrent…
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by lelejau
… to create a class to update a listbox, but using
invoke
because I'm running in a diffrent Thread. There is…
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by Mitja Bonca
… int[] { a, b }; int c = myClass.Calculating(array); this.textBox3.
Invoke
(new MyDelegate(ShowResults), new object[] { c }); } private void ShowResults(int…
Re: Invoke in Custom Class
Programming
Software Development
13 Years Ago
by Mitja Bonca
… }; myClass.Calculating(array); } public void DoWork(int value) { this.textBox3.
Invoke
(new MyDelegate(ShowResults), new object[] { value }); } private void ShowResults(int…
Invoke problem
Programming
Software Development
13 Years Ago
by JannuBl22t
… cid = 0, int status = 0) { if (InvokeRequired) {
Invoke
(new Action(() => UpdateColumn(stateInformation, cid, status))); } else {…did some testing and I can see that : [CODE]
Invoke
(new Action(() => UpdateColumn(stateInformation, cid, status)));…
Re: Invoke problem
Programming
Software Development
13 Years Ago
by lolafuertes
… cid, int status)[/CODE] 2) instad of [CODE]if (InvokeRequired){
Invoke
(new Action(() => UpdateColumn(stateInformation, cid, status)));}[/CODE] try this…){ var TheDelegate = new UpdateColumnDelegate (UpdateColumn); object[] params = {stateInformation, cid, status}; {
Invoke
(TheDelegate, params); }....[/CODE] This way you can verify step by…
Re: Invoke problem
Programming
Software Development
13 Years Ago
by Ketsuekiame
…UpdateColumnDelegate(UpdateColumn); object[] items = { stateinformation, cid, status }; this.listView1.
Invoke
(TheDelegate, items); } [/code] to this: [code] if(this.InvokeRequired)…(UpdateColumn); object[] items = { stateinformation, cid, status }; this.
Invoke
(TheDelegate, items); return; } [/code] Then tell me what exception…
Re: Invoke and threads
Programming
Software Development
16 Years Ago
by Nemoticchigga
Could someone at least explain
invoke
and how it is used? or link me to something that may make sense. Ive been googling and cant find anything that I understand. Thanks either way.
Re: Invoke and threads
Programming
Software Development
16 Years Ago
by Ancient Dragon
I have no idea what [b]
invoke
[/b] does. Never heard of it.
Re: Invoke problem
Programming
Software Development
13 Years Ago
by Mitja Bonca
… void UpdatingMyControl(string strValue) { if (this.labelShow.InvokeRequired) this.labelShow.
Invoke
(new MyDelegate(UpdatingMyControl), new object[] { strValue }); else labelShow.Text = strValue…
Re: Invoke problem
Programming
Software Development
13 Years Ago
by lolafuertes
… need to change your sentence to some thing like: [CODE]
Invoke
(new Action(() => UpdateColumn(stateInformation, cid, status)), new object[] {stateInformation…
Re: Invoke problem
Programming
Software Development
13 Years Ago
by JannuBl22t
… = new UpdateColumnDelegate(UpdateColumn); object[] items = { stateinformation, cid, status }; this.listView1.
Invoke
(TheDelegate, items); } if (status == 0) { var res = "Failed"…
Re: Invoke problem
Programming
Software Development
13 Years Ago
by Ketsuekiame
… to post back to the main UI thread on your
Invoke
. This is why the break point is never hit. Your…
Invoke Java library from C/C++
Programming
Software Development
19 Years Ago
by George2
Hello everyone, Are there any approaches to
invoke
Java libraries from C/C++? Thanks in advance, George
invoke the application first
Programming
Software Development
15 Years Ago
by coolshail_87
… access of internet on the perticular intranet... i want to
invoke
my software as soon the explorer is clicked... thus, before…
Invoke a Method when UserControl's textbox event is fired
Programming
Web Development
15 Years Ago
by vuyiswamb
…&stc=1&d=1242811920[/URL] i want to
Invoke
the Function the the "[B]Remove Staff [/B]"…
Invoke Web Service Request and Response
Programming
Software Development
14 Years Ago
by snakay
… the web service. But I don't know how to
invoke
the request by sending the requested complex and simple elements…
1
2
3
17
Next
Last
Search
Search
Forum Categories
Hardware/Software
Recommended Topics
Programming
Recommended Topics
Digital Media
Recommended Topics
Community Center
Recommended Topics
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