Last active
April 20, 2024 07:24
-
-
Save truevis/7f4fa94d725030f77debce5bdbfa0299 to your computer and use it in GitHub Desktop.
This script deftly enlists the Groq client to choreograph a dance with the llama3-70b-8192 model, playing out a skit where it conjures up an email about the thrilling world of government contract bidding in NY, sans the fluffy pleasantries.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from groq import Groq | |
| # Initialize Groq client with API key | |
| client = Groq(api_key="gsk_123") | |
| completion = client.chat.completions.create( | |
| model="llama3-70b-8192", | |
| messages=[ | |
| { | |
| "role": "system", | |
| "content": "Wise Assistant" | |
| }, | |
| { | |
| "role": "user", | |
| "content": "Context:\nCompose a draft email to my client about how to submit bids for government contracts in NY. Omit any initial greetings or pleasantries, such as 'I hope this message finds you well." | |
| } | |
| ], | |
| temperature=0.1, | |
| max_tokens=8192, | |
| top_p=1, | |
| stream=True, | |
| stop=None, | |
| ) | |
| for chunk in completion: | |
| print(chunk.choices[0].delta.content or "", end="") |
Author
Author
This script deftly enlists the Groq client to choreograph a dance with the llama3-70b-8192 model, playing out a skit where it conjures up an email about the thrilling world of government contract bidding in NY, sans the fluffy pleasantries. Picture it as a digital concierge, coolly crafting a no-nonsense guide sans the "Hope this finds you well" snooze fest. The parameters set the stage for a low-drama, precise output, ensuring that the email stays as engaging as a tax form—and streams the fun in bite-sized chunks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Result:
Here is a draft email to your client about submitting bids for government contracts in NY:
To submit bids for government contracts in New York, you will need to follow these steps:
Register with the New York State Contract Reporter: The Contract Reporter is the official publication of New York State's procurement opportunities. You can register online to receive notifications of bid opportunities that match your business's products or services.
Obtain a Vendor ID: You will need to obtain a Vendor ID from the New York State Office of General Services (OGS). This unique identifier is required to do business with the state.
Get Certified as a Minority- or Women-Owned Business Enterprise (M/WBE): If your business is owned by a minority or woman, you may be eligible for certification as an M/WBE. This certification can provide a competitive advantage when bidding on government contracts.
Find Bid Opportunities: Search for bid opportunities on the New York State Contract Reporter website or through the Empire State Development's (ESD) website. You can also search on the Federal Business Opportunities website (FBO.gov) for federal contracts.
Review and Respond to Bid Solicitations: Carefully review the bid solicitation documents, including the scope of work, timelines, and requirements. Ensure you meet all the necessary qualifications and can fulfill the contract requirements.
Submit a Complete and Timely Bid: Submit your bid by the specified deadline, ensuring that all required documents and information are included. Late bids will not be accepted.
Follow Up: After submitting your bid, follow up with the contracting officer to confirm receipt and to ask about the status of the evaluation process.
Remember to carefully review the bid solicitation documents and ensure you meet all the necessary qualifications before submitting a bid. If you have any questions or concerns, do not hesitate to reach out to the contracting officer or our office for guidance.
Best regards,
[Your Name]