id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Openai_Text_Generation/63646_36_0.txt
# Issue: openai functions agent does not respect tools and arguments #6364 falmanna opened this issue Jun 18, 2023 · 21 comments
Openai_Text_Generation/Openai_Text_Generation_3_5.txt
t, you will likely get an overabundance of refusals Make sure your training examples contain all of the information needed for the response If we want the model to compliment a user based on their personal traits and a training example includes assistant compliments for traits not found in the preceding conversation, t...
Openai_Text_Generation/47832_26_0.txt
Cancel Create saved search Sign in
Openai_Text_Generation/234_6_0.txt
show post in topic ### Related Topics
Openai_Text_Generation/Openai_Text_Generation_0_3.txt
etions endpoint. Instead of the input being a list of messages, the input is a freeform text string called a prompt. An example legacy Completions API call looks like the following: python python from openai import OpenAI client = OpenAI() response = client.completions.create( model="gpt-3.5-turbo-instruct", pr...
Openai_Text_Generation/47832_5_0.txt
Find and fix vulnerabilities * Codespaces
Openai_Text_Generation/284713_33_0.txt
Result: The result is often broken because of “release_date” format, bad-quotes,
Openai_Text_Generation/63646_108_0.txt
Sorry, something went wrong. Copy link
Openai_Text_Generation/47832_33_0.txt
Already on GitHub? Sign in to your account Jump to bottom
Openai_Text_Generation/47832_18_0.txt
* Topics * Trending * Collections * Pricing
Openai_Text_Generation/63646_100_0.txt
uniswap_daily_interest = pd.read_csv("uniswap_daily_interest.csv") dataset={"df": uniswap_daily_interest} tools = [CustomPythonAstREPLTool(locals=dataset)] tool_names = [tool.name for tool in tools] prompt = CustomOpenAIFunctionsAgent.create_prompt(system_message=SystemMessage(content="You are financial Analyst a...
Openai_Text_Generation/63646_72_0.txt
### batmanscode commented Jul 17, 2023 •
Openai_Text_Generation/47832_51_0.txt
All reactions * 👎 5 reactions
Openai_Text_Generation/63646_22_0.txt
We read every piece of feedback, and take your input very seriously. Include my email address so I can be contacted
Openai_Text_Generation/47832_65_0.txt
look this: https://python.langchain.com/en/latest/modules/agents/streaming_stdout_final_only.html?highlight=Only%20streaming%20final%20agent%20output I tried it out and it seems that the latest version doesn't have a ` Final Answer ` tag, so it didn't successfully output. If I figure it out, I'll let you know. \------...
Openai_Text_Generation/63646_55_0.txt
SimonB97 mentioned this issue Jun 27, 2023 Issue[Bug]: OpenAIMultiFunctionsAgent stuck - 'tool_selection is not a valid tool' #6813
Openai_Text_Generation/63646_49_0.txt
Copy link Contributor Author
Openai_Text_Generation/47832_56_0.txt
Sorry, something went wrong. Copy link
Openai_Text_Generation/47832_67_0.txt
Copy link Author
Openai_Text_Generation/63646_79_0.txt
### Saksham2703 commented Jul 19, 2023
Openai_Text_Generation/47832_29_0.txt
* Notifications * Fork 12.9k * Star 83.9k * Code * Issues 894 * Pull requests 453 * Discussions * Actions * Projects 1 * Security * Insights
Openai_Text_Generation/63646_105_0.txt
Copy link ###
Openai_Text_Generation/63646_59_0.txt
Thank you very much in advance. --- All reactions Sorry, something went wrong.
Openai_Text_Generation/234_4_0.txt
Create a list of three random source phrases and three random translations for each. Do not include any explanations, only provide a RFC8259 compliant JSON response following this format without deviation. [{ "source_language": "language of original phrase", "source_phrase": "the phr...
Openai_Text_Generation/47832_99_0.txt
None yet Projects
Openai_Text_Generation/234_7_0.txt
Topic | | Replies | Views | Activity ---|---|---|---|--- I want to get json format response which I can pass using gpt-4 model. Also I want to give my prompt to get json data Prompting gpt-4 | 14 | 12302 | October 26, 2023 How do I use the new JSON mode? API api | 61 | 97700 | January 29,...
Openai_Text_Generation/47832_82_0.txt
### reinershir commented Jun 1, 2023
Openai_Text_Generation/63646_116_0.txt
AtheerAlgherairy commented Dec 12, 2023 @falmanna I was trying to use your code for CustomPythonAstREPLTool and CustomOpenAIFunctionsAgent but I got the following import error.. any ideas to fix it? --- All reactions
Openai_Text_Generation/47832_96_0.txt
Sorry, something went wrong. eyurtsev closed this as completed Feb 14, 2024
Openai_Text_Generation/47832_80_0.txt
Is there something I'm missing or am I completely overcomplicating this? It would be nice if an agent could stream a final answer as just a string instead of JSON since it is not actually going into a tool or anything. Here's my callback handler: class AsyncStreamCallbackHandler(AsyncCallbackHandler): ...
Openai_Text_Generation/284713_17_0.txt
I created a repo to share some regexes. But if you have a better approach, I’d appreciate : GitHub - stouch/chatgpt-json-cleaner: Some regexes and string manipulation to clean the chaotic JSON produced by ChatGPT (french prompt) Thanks.
Openai_Text_Generation/63646_28_0.txt
{{ message }} langchain-ai / langchain Public
Openai_Text_Generation/47832_60_0.txt
### nithinreddyyyyyy commented May 22, 2023
Openai_Text_Generation/47832_8_0.txt
Manage code changes * Issues
Openai_Text_Generation/47832_31_0.txt
New issue Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Openai_Text_Generation/63646_113_0.txt
### lbolanos commented Oct 31, 2023
Openai_Text_Generation/Openai_Text_Generation_3_1.txt
rmined that fine-tuning is the right solution (i.e. you’ve optimized your prompt as far as it can take you and identified problems that the model still has), you’ll need to prepare data for training the model. You should create a diverse set of demonstration conversations that are similar to the conversations you will ...
Openai_Text_Generation/63646_41_0.txt
Could not parse tool input: {'name': 'python', 'arguments': "len(cases_df['case_id'].unique())"} because the `arguments` is not valid JSON. Which means the model isn't respecting the specs accurately. In my case, the confusion was always that the name of the tool is ` python ` instead of ` python_re...
Openai_Text_Generation/63646_94_0.txt
This is basically creating a custom pandas dataframe. Use it as is instead of ` create_pandas_dataframe ` , pass in any LLM you like. --- All reactions Sorry, something went wrong.
Openai_Text_Generation/63646_64_0.txt
Sorry, something went wrong. Copy link
Openai_Text_Generation/47832_10_0.txt
Collaborate outside of code Explore
Openai_Text_Generation/Openai_Text_Generation_0_0.txt
Text generation models OpenAI's text generation models (often called generative pre-trained transformers or large language models) have been trained to understand natural language, code, and images. The models provide text outputs in response to their inputs. The inputs to these models are also referred to as "prompts"...
Openai_Text_Generation/47832_48_0.txt
### lecbyjak commented May 16, 2023 •
Openai_Text_Generation/63646_6_0.txt
Instant dev environments * Copilot
Openai_Text_Generation/Openai_Text_Generation_3_0.txt
Fine-tuning Learn how to customize a model for your application. Introduction Fine-tuning lets you get more out of the models available through the API by providing: Higher quality results than prompting Ability to train on more examples than can fit in a prompt Token savings due to shorter prompts Lower latency requ...
Openai_Text_Generation/63646_130_0.txt
© 2024 GitHub, Inc. ### Footer navigation
Openai_Text_Generation/47832_3_0.txt
Automate any workflow * Packages
Openai_Text_Generation/63646_48_0.txt
* 👍 2 reactions Sorry, something went wrong.
Openai_Text_Generation/Openai_Text_Generation_3_4.txt
_zc4Q7MP6XxulcVzj4MZdwsAB", "created_at": 1519129973, "fine_tuned_model_checkpoint": "ft:gpt-3.5-turbo-0125:my-org:custom-suffix:96olL566:ckpt-step-2000", "metrics": { "full_valid_loss": 0.134, "full_valid_mean_token_accuracy": 0.874 }, "fine_tuning_job_id": "ftjob-abc123", "step...
Openai_Text_Generation/284713_31_0.txt
stouch February 26, 2023, 10:48pm 14 I just made a simple test in english and I had 1/4 ugly broken JSON.
Openai_Text_Generation/63646_13_0.txt
By Solution * CI/CD & Automation * DevOps * DevSecOps
Openai_Text_Generation/47832_12_0.txt
For * Enterprise * Teams * Startups * Education
Openai_Text_Generation/284713_4_0.txt
An example of it gone wrong is below. Of course without being able to retrieve data in a consistent fashion makes coding for the receipt of it next to impossible! Is there a way or known format for forcing the API to return the data in a specific fashion with consistency?
Openai_Text_Generation/63646_125_0.txt
Labels None yet
Openai_Text_Generation/63646_57_0.txt
### li-xiaohui commented Jul 9, 2023
Openai_Text_Generation/63646_25_0.txt
Query To see all available qualifiers, see our documentation .
Openai_Text_Generation/63646_74_0.txt
Sorry, something went wrong. Copy link
Openai_Text_Generation/63646_18_0.txt
* Topics * Trending * Collections * Pricing
Openai_Text_Generation/63646_70_0.txt
> hey @li-xiaohui I had to initialize the agent manually, here is how. > > > dataset={"df": df} > tools = [CustomPythonAstREPLTool(locals=dataset)] > tool_names = [tool.name for tool in tools] > prompt = > CustomOpenAIFunctionsAgent.create_prompt(system_message=SystemMessage(content=prefix)) > ...
Openai_Text_Generation/47832_55_0.txt
It is returning an error. Below is the error Thought: I now know the pokemon with the highest and lowest speed that are of type Grass Final Answer: The Grass Type pokemon with the highest speed is SceptileMega Sceptile with 145 speed and the Grass Type pokemon with the lowest speed is Ferroseed with ...
Openai_Text_Generation/284713_39_0.txt
Screenshot 2023-02-27 at 9.16.20 AM 1838×874 68.6 KB Screenshot 2023-02-27 at 9.17.19 AM 2186×812 61.2 KB
Openai_Text_Generation/63646_101_0.txt
Copy link Contributor Author
Openai_Text_Generation/284713_21_0.txt
Some online news media have created Application Programming Interfaces (APIs) to enable computer applications to request stories and information about their stories (metadata) from them. "Platform API power all the BBC's product areas - iPlayer, News, Sport, Weather, Children's Knowledge and Learning - as well as many ...
Openai_Text_Generation/47832_83_0.txt
> jakesteelman If you want to do something after the final answer output, then ` on_llm_end ` method can achieve it. Just return your end tag here, like this: ` await self.send('[DONE]') ` . Or did I misunderstand what you meant? --- All reactions
Openai_Text_Generation/47832_44_0.txt
### Related Components * LLMs/Chat Models * Embedding Models * Prompts / Prompt Templates / Prompt Selectors * Output Parsers * Document Loaders * Vector Stores / Retrievers * Memory * Agents / Agent Executors * Tools / Toolkits * Chains * Callbacks/Tracing * Async
Openai_Text_Generation/47832_16_0.txt
Fund open source developers * The ReadME Project
Openai_Text_Generation/63646_40_0.txt
### Issue you'd like to raise. When mixing ` gpt-3.5-turbo-0613 ` , ` openai-functions ` agent, and ` PythonAstREPLTool ` tool, GPT3.5 stops respecting the tool name and the arguments hack introduced in the OpenAIFunctionsAgent. The error log is:
Openai_Text_Generation/63646_30_0.txt
Additional navigation options * Code * Issues * Pull requests * Discussions * Actions * Projects * Security * Insights
Openai_Text_Generation/47832_73_0.txt
### reinershir commented May 24, 2023
Openai_Text_Generation/63646_61_0.txt
### falmanna commented Jul 9, 2023
Openai_Text_Generation/47832_14_0.txt
Resources * Learning Pathways * White papers, Ebooks, Webinars * Customer Stories * Partners
Openai_Text_Generation/47832_97_0.txt
Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment Assignees
Openai_Text_Generation/63646_75_0.txt
Contributor Author ###
Openai_Text_Generation/284713_41_0.txt
I slightly changed your prompt @stouch and got a valid JSON completion for your more “complcated request”. In my test prompt, I instructed the API to not escape double quotes in the output, like this: ` Do not escape the double quotes in the output ` :
Openai_Text_Generation/47832_91_0.txt
Copy link ###
Openai_Text_Generation/284713_23_0.txt
stouch February 26, 2023, 9:52pm 8 In many cases, it’s useful to request ChatGPT outputing in JSON.
Openai_Text_Generation/47832_57_0.txt
### reinershir commented May 22, 2023
Openai_Text_Generation/63646_54_0.txt
create_csv_agent: How to save a dataframe once information has been extracted using create_csv_agent. #5611 Closed
Openai_Text_Generation/47832_43_0.txt
### Information * The official example notebooks/scripts * My own modified scripts
Openai_Text_Generation/63646_90_0.txt
> hey @li-xiaohui I had to initialize the agent manually, here is how. > > > dataset={"df": df} > tools = [CustomPythonAstREPLTool(locals=dataset)] > tool_names = [tool.name for tool in tools] > prompt = > CustomOpenAIFunctionsAgent.create_prompt(system_message=SystemMessage(content=prefix)) > ...
Openai_Text_Generation/63646_60_0.txt
Copy link Contributor Author
Openai_Text_Generation/Openai_Text_Generation_3_3.txt
tuned model After ensuring you have the right amount and structure for your dataset, and have uploaded the file, the next step is to create a fine-tuning job. We support creating fine-tuning jobs via the fine-tuning UI or programmatically. To start a fine-tuning job using the OpenAI SDK: python python from openai im...
Openai_Text_Generation/284713_56_0.txt
Topic | | Replies | Views | Activity ---|---|---|---|--- I want to get json format response which I can pass using gpt-4 model. Also I want to give my prompt to get json data Prompting gpt-4 | 14 | 12302 | October 26, 2023 How do I use the new JSON mode? API api | 61 | 97700 | January 29,...
Openai_Text_Generation/284713_51_0.txt
devang.hingu February 28, 2023, 12:11pm 20 I facing same issue with chatGPT’s API. it gives unwanted string in between the JSON response. therefore i not able to process the json response sometimes!
Openai_Text_Generation/284713_55_0.txt
next page → ### Related Topics
Openai_Text_Generation/47832_41_0.txt
> Entering new AgentExecutor chain... Thought: I need to find the pokemon with the highest and lowest speed that are of type Grass Action: python_repl_ast Action Input: df[df['Type 1'] == 'Grass'][['Name', 'Speed']].sort_values('Speed') Observation: Name Speed ...
Openai_Text_Generation/63646_77_0.txt
All reactions * 👍 1 reaction * ❤️ 2 reactions
Openai_Text_Generation/63646_2_0.txt
* Product * Actions
Openai_Text_Generation/47832_45_0.txt
### Reproduction output = agent.run("what is Grass Type which pokemnon has highest speed and lowest speed?"
Openai_Text_Generation/47832_2_0.txt
* Product * Actions
Openai_Text_Generation/63646_87_0.txt
falmanna commented Jul 19, 2023 > Hey What is the SystemMessaage and how do you import it? from langchain.agents import initialize_agent from langchain.agents import AgentType from langchain.agents import create_pandas_dataframe_agent from langchain.agents.chat.base import ChatAgent fro...
Openai_Text_Generation/47832_105_0.txt
You can’t perform that action at this time.
Openai_Text_Generation/284713_13_0.txt
4 Likes mattgscox February 24, 2023, 3:32pm 5
Openai_Text_Generation/47832_37_0.txt
# How to return the text which is after Finished Chain or Final Answer? #4783 nithinreddyyyyyy opened this issue May 16, 2023 · 13 comments
Openai_Text_Generation/47832_102_0.txt
No branches or pull requests 8 participants
Openai_Text_Generation/Openai_Text_Generation_2_0.txt
Embeddings Learn how to turn text into numbers, unlocking use cases like search. New embedding models text-embedding-3-small and text-embedding-3-large, our newest and most performant embedding models are now available, with lower costs, higher multilingual performance, and new parameters to control the overall size....
Openai_Text_Generation/284713_35_0.txt
The result becomes messy with json property keys without quotes etc. I’ll tell you my results in english , not sure if we gonna test but I’ll keep you in touch.
Openai_Text_Generation/47832_92_0.txt
sssalcedo commented Sep 5, 2023 • edited
Openai_Text_Generation/284713_10_0.txt
Here is a prompt which works fine to me: const promptText = `Given the article below, create a JSON object which enumerates a set of 5 child objects. Each child object has a property named "q" and a property named "a". For eac...
Openai_Text_Generation/63646_26_0.txt
Cancel Create saved search Sign in