This is tagged algebraic geometry becomes it comes from Hartshorne exercise V.1.8(b), where we have a group $\operatorname{Num} X :=G$ and an inclusion $G \hookrightarrow \mathbb{Q}^n$. Furthermore, we have a nondegenerate bilinear pairing $\langle \cdot,\cdot \rangle$ on $\mathbb{Q}^n$, so that $\langle G, G\rangle \subseteq \mathbb{Z}$. As suggested in the comments, let's also assume that $G$ generates $\mathbb{Q}^n$ over $\mathbb{Q}$.
I'd like to show that $G$ is finitely generated under these assumptions. I had a couple ideas for how to do this. One was to expand $G$ to be the group of all elements with integral inner product, but this is hard to describe, and I'm not sure one can. Another is to do induction, where the base case uses something like this, and then viewing $G$ as an extension of two finitely generated abelian groups.
However, it's still not completely clear how to conclude. Does anyone know how to finish this kind of problem?
Thanks!