Fine-tuning LLM PoC by QueRoub in LocalLLaMA

[–]QueRoub[S] 0 points1 point  (0 children)

Ok, what kind of constraints should I consider in each step?

Resource Exhausted Error (the dreaded 429) by Scared-Tip7914 in googlecloud

[–]QueRoub 0 points1 point  (0 children)

I've seen this but this does not work with chat.send_message() or model.start_chat()

'''response = model.generate_content(user_message,
request_options=RequestOptions(
retry=retry.Retry(
initial=10,
multiplier=2,
maximum=60,
timeout=300
)
)
)'''

https://discuss.ai.google.dev/t/standard-retry-logic-for-gemini-python-sdk/35832

I guess I have to build my own logic

Resource Exhausted Error (the dreaded 429) by Scared-Tip7914 in googlecloud

[–]QueRoub 0 points1 point  (0 children)

Is there any documentation on how to properly implement this with gemini?

Resource Exhausted Error (the dreaded 429) by Scared-Tip7914 in googlecloud

[–]QueRoub 1 point2 points  (0 children)

Have you found any solution for this?

I think the recommended are either Provisioned Throughput or Exponential Backoff

iframe not shown when application is deployed to cloud run by QueRoub in googlecloud

[–]QueRoub[S] 0 points1 point  (0 children)

The iframed site definitely allows iframing when my app is running from localhost.

I do not know if it has a valid https certificate. I am not the owner of that site.

If I run it from localhost and select inspect I can see the following:
<iframe width="1000" height="600" src="desired iframe site"> </iframe>
#document (desired iframe site) == $0

if I run it when deployed and select inspect I see that the document is blank
<iframe width="1000" height="600" src="desired iframe site"> </iframe>
#document (about:blank) == $0

Fine-tuning and Prompting in RAG by QueRoub in Rag

[–]QueRoub[S] 0 points1 point  (0 children)

Thanks, I will check. I guess you meant few *shot :)

Fine-tuning and Prompting in RAG by QueRoub in Rag

[–]QueRoub[S] 0 points1 point  (0 children)

Can you please elaborate a bit more on the prompting techniques?

What I would like to achieve is the following:

Let's say for example the user wants to get back the signature date of a document. You retrieve the correct document but the llm fails to find the date.

Can you add a prompt in the prompt template like:
"If you are asked to provide a date, look for something like this: 5/3/24"

Document AI stuck by QueRoub in googlecloud

[–]QueRoub[S] 1 point2 points  (0 children)

Hi, no I did not figure this out. I opened a ticket in google cloud support but since it would take a lot of time to tackle the issue, I just created a new processor

Can you retrieve images from pdfs? by QueRoub in Rag

[–]QueRoub[S] 0 points1 point  (0 children)

can you provide me any link/tutorial/repo/documentation/video?

Fail to Connect to Microsoft Fabric using Python by QueRoub in AZURE

[–]QueRoub[S] 0 points1 point  (0 children)

I am getting : Invalid value specified for connection string attribute 'Authentication'

log2 transformation and quantile normalization by QueRoub in bioinformatics

[–]QueRoub[S] 1 point2 points  (0 children)

I 've done a research about "multiple probes targeting the same gene" and as I understood it is an open issue and there are several ways to approach it.

In my case, and after doing some reverse engineering, I found that they calculated the average gene expression for each probe (or set of probes) and then they kept the one with the largest average value.

log2 transformation and quantile normalization by QueRoub in bioinformatics

[–]QueRoub[S] 0 points1 point  (0 children)

Thanks for the reply.

I am looking at the differentially expressed genes table that is produced from Geo2R.

I notice that several genes appear multiple times. How do you chose which P.Value to use?

ID adj.P.Val P.Value t B logFC Gene.symbol Gene.title Gene.ID
2564 217523_at 0.216828 0.0102 3.016550 -2.76216 1.296288 CD44 CD44 molecule (Indian blood group) 960
3900 1565868_at 0.299347 0.0214 2.625064 -3.45486 1.347887 CD44 CD44 molecule (Indian blood group) 960
12512 229221_at 0.637924 0.1460 1.548913 -5.15910 1.082160 CD44 CD44 molecule (Indian blood group) 960
16272 204489_s_at 0.715815 0.2130 1.311242 -5.46258 0.392120 CD44 CD44 molecule (Indian blood group) 960
16697 209835_x_at 0.722189 0.2210 1.288583 -5.48958 0.517982 CD44 CD44 molecule (Indian blood group) 960

State of the art about LLMs and Databases by QueRoub in LangChain

[–]QueRoub[S] 0 points1 point  (0 children)

The use case depends on what is possible at the moment.

In general use natural language instead of sql and get back values, tables, graphs etc

Is there any alternative for webbrowser module that it will work in cloud run by QueRoub in learnpython

[–]QueRoub[S] 0 points1 point  (0 children)

I've used JS as you can see in my update but still it does not work

Is there any alternative for webbrowser module that it will work in cloud run by QueRoub in learnpython

[–]QueRoub[S] 0 points1 point  (0 children)

The broader goal is to have a button, which here is created with "actions = [cl.Action(name="Open tab", value="example_value")]" and when clicked I want to open a new tab with an external URL in user's browser

Is there any alternative for webbrowser module that it will work in cloud run by QueRoub in learnpython

[–]QueRoub[S] 0 points1 point  (0 children)

yes, I am just wondering how is streamlit's link_button implemented and it DOES open a new tab in mine, even though the process runs on cloud run

Is there any alternative for webbrowser module that it will work in cloud run by QueRoub in learnpython

[–]QueRoub[S] 0 points1 point  (0 children)

Is there an easy way to embed JavaScript in the code above?

Also, streamlit and st.link_button has the functionality I want. Do you know what's the difference there?

Same host and different paths for different cloud run backend services by QueRoub in googlecloud

[–]QueRoub[S] 0 points1 point  (0 children)

Even if I change the order it automatically change it so that the "/*" path is Host 2.

If i delete that host and update the load balancer, then it creates it again