Remix.run Logo
nogridbag 18 hours ago

I'm confused a bit by this. For instance, Gemini was struggling to write proper Java code for using Firebase Admin SDK. It would write Java code using methods that only exist in the JavaScript SDK. And when I would correct it, it would give other options that also were only in the JavaScript SDK or were invalid.

So I thought this is where context7 would be useful, but I'm confused what I'm looking at in the detail page: https://context7.com/firebase/firebase-admin-java

I was expecting some sort of dump of all the admin methods, but it gives a single example of one library function and info on how to build javadoc.

0x457 17 hours ago | parent [-]

You're looking at a summary for chunks of code that are relevant to the given library. If you type what specifically you need documentation for and adjust output token count, it will give LLM relevant fragments.

It lets you emulate RAG.

nlawalker 17 hours ago | parent [-]

I think the main problem is that the source GP is using, https://github.com/firebase/firebase-admin-java, contained almost nothing that context7 extracted as "docs".

It looks like https://firebase.google.com/docs/ is being refreshed as I type this, I imagine that using that as a source and including "Java" in the topic filter might give more results (or maybe the https://github.com/firebase/firebase-docs has the same content).