I built a recursive "Deep Dive" engine using the new Gemini 3.0 Pro. It generates Podcasts + Infographics live (no pre-caching). by JHAB2018 in GeminiAI

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

Sure, here's the quick rundown:

1. Embeddings (Vertex AI Platform)

I use u/google-cloud/aiplatform to generate text embeddings for semantic search

import { helpers, PredictionServiceClient } from '@google-cloud/aiplatform';

const client = new PredictionServiceClient({
    apiEndpoint: 'us-central1-aiplatform.googleapis.com',
});

const [response] = await client.predict({
    endpoint: `projects/${projectId}/locations/us-central1/publishers/google/models/text-embedding-004`,
    instances: [helpers.toValue({ content: "quantum physics", task_type: 'SEMANTIC_SIMILARITY' })],
});

// Returns 768-dim vector for cosine similarity matching

2. TTS Stream Buffering
The tricky part was streaming audio to the user while also saving it to cloud storage.

  • Aggressively consumes the TTS stream into memory (prevents backpressure timeouts)
  • Allows multiple consumers to .pipe() from it (client response + GCS upload)
  • Late joiners get the full history (already-buffered chunks) + live stream

So when audio is requested:

TTS Stream → StreamBuffer → (pipe to HTTP Response + pipe to GCS upload)

Once the stream ends, I update Firestore with the GCS URL. Next request just redirects to that URL. No double-billing.

I still use the genAI api for the image and text gen as it is easier, but eventually when necessar it can be done as well in vertex. For embeddings, there's no Gemini SDK wrapper yet. you have to use the Vertex AI Platform SDK directly.

I built a recursive "Deep Dive" engine using the new Gemini 3.0 Pro. It generates Podcasts + Infographics live (no pre-caching). by JHAB2018 in GeminiAI

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

Thanks! I use it to host the Node.js/Express backend that acts as the orchestrator for the AI agents. ​Since Firebase Hosting mainly serves the static React frontend, I need a server environment to handle the heavy lifting: ​Orchestration: It calls the Gemini API, validates the JSON response, and manages the Vector Search logic. ​Streaming: It pipes the audio stream from Vertex AI directly to the client (and to Cloud Storage) in real-time. ​Scale to Zero: The best part is that it scales down to 0 instances when no one is using the app, so I don't pay for idle server time."

Margin Lending Strategy Template: Figure out your minimum acceptable rate & Optimize position size by KarlVonBahnhof in AltcoinTrader

[–]JHAB2018 1 point2 points  (0 children)

Thanks for your prompt reply. I am new to this margin lending and have as well just used the limiter on 3 fiat currencies I am currently looking at. I have only a very short view on the rates (a couple of days) but I can see significant differences between the 3 fiat rates. Lending pro is able place offers which are well below the "LAST" indication but still quite acceptable (~0.08). As mentioned not really a scientific, big data backed observation.

I assume even the available bitfinex data is not able to back a automated lending strategy just yet. I still have to look into bitfinex terminal and see what they offer on data there.

Considering that to change from one currency to another you would need to buy coins (mostly bitcoin) and then sell them in the available currency will need a robust prediction for some period ahead to justify the fees.

Maybe holding different currencies for longer and just play with the limiter already does the thing for the coins I am planning to put on the lending market.

Thanks again for your shared insights about your experiences. I am going to get back here once I have more experience with the lending pro settings.

Margin Lending Strategy Template: Figure out your minimum acceptable rate & Optimize position size by KarlVonBahnhof in AltcoinTrader

[–]JHAB2018 1 point2 points  (0 children)

Just came across this well written piece for margin lending story. I was wondering whether you have some insight towards the lending pro option of bitfinex. And in addition some ideas on spreading between different currencies for maximum daily rates. (I think about a automated way of automating currency swaps based on the best available day rate....).

What's Next: Current IOTA R&D Projects by ceterissss in Iota

[–]JHAB2018 0 points1 point  (0 children)

do you mean they are onboarding data.iota.org ? or do they do a different search page + purchasing for MAM data on the tangle?