Re: Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by aishamushtaq very helpful Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim I checked my code and I only found 2 differences, the first is the 2 `use` commands before the require: use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require 'includes/PHPMailer/src/Exception.php'; require 'includes/PHPMailer/src/PHPMailer.php'; require 'includes/PHPMailer/src/SMTP.php';… Retrieval Augmented Generation with Hugging Face Models in LangChain Programming Computer Science by usmanmalik57 …based on the document embeddings. The response contains concatenated user input and the …. Therefore, I split the response using the `<end>` token and returned only… the model's reply. ``` def generate_response(query): response = retrieval_chain.invoke({"input": query}) return response Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner … the 1st running PHP file). Adding the semi-colon at end of line 18 (in previously discussed code) did not work… Re: Online subission forms not sending emails of submitted info Programming Web Development by Chris_103 It seems like you're experiencing issues with PHP-based email functionality, where submissions are not triggering emails to be sent. Let's dive into the code snippet you provided and see if we can identify any potential issues or improvements. Paris Olympics Ticket Information Chatbot with Memory Using LangChain Programming Computer Science by usmanmalik57 … `retriever` and `document_chain` as parameters and returns the final response from an LLM. ``` retriever = vector.as_retriever() retrieval_chain = …'] chat_history.extend([HumanMessage(content = query), AIMessage(content = response)]) return response ``` Finally, we can execute a `while` loop that… Using Natural Language to Query SQL Databases with Python LangChain Module Programming Computer Science by usmanmalik57 …verbose=True) response = agent_executor.invoke(query) return response ``` ## Generating Response from PostgreSQL Database Generating a response from the LangChain… the `output` key of the response dictionary to see the returned response. ``` print(response['output']) ``` **Output:** ``` The… Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani … above, you don't have a semi-colon at the end. Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim … error on line 18 that needs a semicolon on the end: "Comments or Questions: " . $_POST['Message'] . "\r\n… Question Answering with YouTube Videos Using RAG in LangChain Programming Computer Science by usmanmalik57 …answer'] chat_history.extend([HumanMessage(content = query), AIMessage(content = response)]) return response ``` The following script executes a `while` loop. Inside… your messages, have a good day!") break response = generate_response_with_memory(query) print(f"\033[1m Chatbot… VB2010- why i get a different vertical size\color on RayCasting? Programming Software Development by cambalinho …PosY) / Math.Tan(RayRadians) StepY = -ObjectSize End If StepX = StepY / Math.Tan(RayRadians) … WallDistance = HorizDist VertColor = Color.Blue End If WallDistance = WallDistance * Math.Cos(… Slaying Unicorns: How Europe Sabotages Its Own Economic Future Community Center by Johannes C. … to mention **centuries of post-colonialism** [finally coming to an end](https://africanarguments.org/2023/08/adieu-to-a-post-colonial… 'Prepare for the Earliest Possible AGI Deployment Scenario' Community Center by Johannes C. … when does personhood begin**? We can see these debates around end-of-life care, for example. While I personally don't… Create And Install Windows Service Step By Step In C# Programming Web Development by Rabiya_1 …); StreamWriter sw = new StreamWriter(fs); sw.BaseStream.Seek(0, SeekOrigin.End); sw.WriteLine(content); sw.Flush(); sw.Close(); } Can any body… This is me venting Community Center Meta DaniWeb by Dani … that right after all. But the thing is, at the end of the day, I'm the only one willing to… Re: Things I hate about TV shows Community Center Geeks' Lounge by Reverend Jim … goes by between episodes. Sometimes I'll wait until the end of a season before I watch any of it. I… Re: Things I hate about TV shows Community Center Geeks' Lounge by Reverend Jim … through summer vacation and I couldn't wait for the end of September for the new seasons to start. Of course… Re: Improve HAVING BY performance Programming Databases by Dani …, but there were two (specifically, that looked at whether the end-user had posted in the topic, or had unread posts… Re: Improve HAVING BY performance Programming Databases by Reverend Jim … 95% of my work from 1995 to 2008 was back end stuff where I didn't have to worry about stuff… Re: Improve HAVING BY performance Programming Databases by Biiim …, but there were two (specifically, that looked at whether the end-user had posted in the topic, or had unread posts… Re: Read file properties of video files in C++ Programming Software Development by Thomasio … of course I'm not sure. I guess in the end it comes down to ..... that MediaInfo program will also use… Re: Improve HAVING BY performance Programming Databases by Dani … of all different price ranges, you're not going to end up with the same result set. Re: How is Website Framework detected Programming Web Development by Dani … to tell you what's being used on the front end. It takes some hacker-level sleuthing to figure out what… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner Ran into some new issues. Here goes. In order to download PHPMailer, must download Composer. In order to install Composer, need a Command Line PHP.exe file. I do not have one of these. I have been using PHP services from URL provider, 1 & 1/Ionos since 2011. They said in order to get a Command Line PHP.exe file, requires SSH to 'Connect to … Re: Online subission forms not sending emails of submitted info Programming Web Development by Biiim You don't need composer or access to the php.exe. just locate the PHPmailer Directory into your web root, to keep it simple and the require links should point to where it is located. mine is `require 'includes/PHPMailer/src/PHPMailer.php';` cause I put it in a folder called includes, this should be relative to the file that is using it.… Re: Online subission forms not sending emails of submitted info Programming Web Development by david.tigner More problems. I incorporated the coding Biiim provided. Before any changes, after submission, would display the correct (yellow) screen. After code changed, not only will still not send email but screen turns blank white. URL provider, IONOS, told me that the Host is smtp.ionos.com and the Username and password are for an email address associated … Re: Online subission forms not sending emails of submitted info Programming Web Development by Dani To clarify, I am suggesting: [...] //make your email body to send here $survey = "RadiantNewHorizonHomes.com General Inquiries" . "\r\n" . "\r\n" . "Name: " . $_POST['Name'] . "\r\n" . "E-mail Address: " . $_POST['Email'] . "\r\n&… Re: Create And Install Windows Service Step By Step In C# Programming Web Development by rproffitt Since the answer would be many pages long, read https://learn.microsoft.com/en-us/dotnet/framework/windows-services/walkthrough-creating-a-windows-service-application-in-the-component-designer and consider the two other pages noted there. Re: This is me venting Community Center Meta DaniWeb by Reverend Jim It's hard for me to imagine that all of the pleasure I've gotten out of Daniweb, the challenges, the insights, the friendships since I joined in 2010, are all dependent on the largesse of just one very talented person. I, for one, appreciate all you have done, particularly considering your current health issues. If you feel unappreciated then … Re: This is me venting Community Center Meta DaniWeb by Reverend Jim Also, in non-computing over the years I have heard comments like "if only I hadn't stopped for coffee I would have missed that accident, or several other variations. The thing is you never know what would have happened if you had made different decisions. Certainly making a different decision may have resulted in things being better. Or they …