Skip to content
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.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

High costs #38

Open
carlaelisa opened this issue Nov 10, 2023 · 1 comment
Open

High costs #38

carlaelisa opened this issue Nov 10, 2023 · 1 comment

Comments

@carlaelisa
Copy link

We have deployed this Repository using our own data. GPT-4-32k is the model that is used.

We figured that the cost of Azure OpenAI is extremely expensive when using the solution.
One example:
2 questions --> 1.80$

Even the Azure Cognitive Search is around 7$ a day and the frontend and backend app each around 15$ a day.

If more people in the organisation were about to use this tool it will get expensive very fast..

Is there an idea on how to lowen the cost of using this solution?

Thank you in advance :)

@hwan18
Copy link

hwan18 commented Dec 14, 2023

If its costing you $1.80 for 2 questions, thats $0.9 a question meaning its around 15k tokens for 1 question because every 1000 tokens cost 0.06 with gpt-4. At this point you're question prompts are too heavy eating up too many tokens, I suggest reducing prompt tokens when questioning by:

  1. reducing system prompt for gpt
  2. the length of context you're bringing back from cognitive search by chunking the searchable data in to smaller text chunks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants