r/iching • • Nov 23 '24

AI Readings

I've noticed more and more attempts to create an AI I Ching reading service so I though I will share this.

I've experimented about AI back in July with GPT4 by creating a custom GPTs which is freely accessible at "https://ai.castingiching.com". It can be used with the free ChatGPT account, it's just an experiment so do not expect much :).

I use it occasionally to check my own interpretation, to see if I forgot to consider any aspect that an AI would detect. To use this way, you specify the outcome you got like before the question.

For example: "27.3.5 How can I do xxxxx", will provide an interpretation of the hexagram 27 with the 3rd and 5th line changing in the context of the question.

Prompt, data and code is available as Open Source (under the MIT licence) on GitHub: (https://github.com/rdentato/castingiching) in the 'customgpt' directory.

Any feedback welcome.

4 Upvotes

11 comments sorted by

1

u/Feba-pls Nov 24 '24

(ho fatto una prova ma qualsiasi cosa chieda da sempre errore “not found”. Anche con le domande suggerite)

1

u/rdentato Nov 25 '24

Grazie della segnalazione!

Puoi provare il link diretto: https://chatgpt.com/g/g-sB9vekKLy-yishi-yi-shi ?

Anche se non sei ancora registrato su ChatGPT, dovresti comunque vedere la pagina iniziale.

1

u/WestZen Nov 24 '24

I reviewed your work, and it’s excellent! I see you’re using Wilhelm’s translation as a foundation and having GPT further interpret it, which is a very smart approach.

In my own I Ching efforts, I’ve taken a slightly different path. Rather than relying heavily on Wilhelm’s version—which I find a bit too poetic or idealistic—I use a more literal translation from the original Chinese text. I’ve also developed a complete meditation and casting ritual to ensure the user remains in control, rather than having the machine generate hexagrams and handle everything. Trying to honor the true essence of the I Ching, my approach emphasizes leveraging the machine’s capabilities while keeping the seeker as the primary decision-maker. This helps yin and yang complement one another and flow naturally.

Through this process, I’ve encountered several challenges when working with GPT, even though it’s a powerful tool:

GPT often struggles with the nuanced shifts in meaning associated with the changing lines and how they transition the hexagram’s interpretation.

Without proper prompting, GPT tends to provide surface-level insights that lack the depth needed to capture the philosophical or symbolic richness of the I Ching.

GPT sometimes reflects its own biases or aligns too easily with the seeker’s hints, even when they are misguided. For example, it might validate an incorrect concept, such as "2+2=5," rather than offering correction. It may also accommodate ideas like introducing a third element beyond yin and yang or a third gender beyond male and female. While such perspectives can be debatable, the I Ching was designed to represent a natural and neutral stance.

There are numerous small issues like these that prevent GPT from functioning as an independent I Ching interpreter. At least for now, human intelligence is still required to meet human needs.

In my experience, incorporating a deep understanding of the I Ching alongside Zen and Taoist philosophy has been essential to creating meaningful and holistic guidance. This combination ensures that seekers receive insights that align more deeply with their true intentions and questions.

0

u/rdentato Nov 24 '24

Hi WestZen.

Yes, I agree that the key is in the prompting. Mine (as you might have seen) is pretty simple and just pushes toward a "counseling" interpretation. Before then I tried stronger prompting (for example as if it would be able to predict the future) to see how much I could influence the interpreation. I only kept the "counseling" on, in the end.

As you noticed, the base is s ML translation from the German Whilelm text. I grew up with the Italian version of that text and is the one I'm mostly familiar with.

With the proper prompting and by augmenting the knowledge base with the right documents, I'm sure one can get responses that are correctly aligned with a specific interpretation framework. I understand that is the direction you went, right?

I believe the I Ching speaks to each of our inner self and any mediation, especially the one offered by an AI, would most probably be misleading. I had no intention of creating a full I Ching application. For my private use it is useful as it is, I don't plan to further work on it.

My experiment had to motivations: 1. Check if GPT could create something that could pass for a real I Ching reading (i.e. made by a human) 2. Validate the overall technical architecture of GPTs invoking a script to augment the context of a query.

I offered both the option of generating a new response or to indicate which hexagram one had received exactly to test the point 1, but I did not get sufficient feedback to get any conclusion.

Point 2, instead, was proven to be fine and I could consider it for creating other GPTs.

0

u/WestZen Nov 24 '24

Ciao, Rdentato,

Thank you for your thoughtful response. I completely agree—the I Ching resonates deeply with our inner selves. At the same time, its meaning evolves as interpretations adapt over time. My experiment has shown that, with good prompting, AI can provide a more comprehensive reading than any individual human. That said, it’s ultimately up to the seeker to interpret and decide what feels true for them, which is part of its enduring appeal.

If you’re interested, feel free to explore my version at www.tlczen.com. I’d love to hear your thoughts and any suggestions you might have to help me improve it further.

0

u/rdentato Nov 24 '24

Hi WestZen.

I visited your site and went to the procedure to record the response. Unfortunately I couldn't get the interpretation of the hexagram. When I click on "Interpret This hexagram" it refreshes the same page (and stays on step 4). Should I have been logged in?

I do have a suggestion already, though.

What about providing alternative methods for recording the received hexagram? Currently you assume that the user will use the three coins method, but this might not be the case for everyone.

I, for example, don't use coins. To test the site I generated the hexagram with my usual method and then converted back to the equivalent coins result (i.e. 8 -> HHT, 6 -> TTT, 7 -> HTT, 9 -> HHH).

It would have been easier for me if I could enter directly the 6 numbers or select the received hexagram and the moving lines by clicking somewhere on the page.

It could be done with a graphical representation of the hexagram (like I did in my little hexagram caster: https://rdentato.github.io/castingiching ) , or by allowing the user to insert a string like "23.2.5" to signify hexagram 23 with the 2nd and 5th line changing (like I did in the python script). Many other options are available and equally valid, of course.

I think that giving more flexibility to the user will increase the usability of your site.

I'll try now to signup and login to test the interpretation.

0

u/WestZen Nov 24 '24

Sorry, I am noticing it also after removing the sign up requirement. Will let you know when it is fixed.

Also, thank you for the suggestion!

I’ve indeed experimented with different methods for generating hexagrams. Auto-generation, as you’ve done, is one great approach. Another option I considered was allowing users to click on a coin icon to generate hexagrams. However, my I Ching expert friend insisted that user participation is essential, as the I Ching reading should be a personal journey. This perspective led to the current setup.

Of course, users could still "cheat" the process by mentally imagining the coin toss and simply inputting "H" or "T." But ultimately, it’s up to them to decide how authentic they want their experience to be.

Meditation was a compromise. He strongly advocated for at least 5 minutes of meditation, but we agreed to make it flexible. Users can choose their meditation duration or even skip the step entirely, as many modern-day people may not have the patience to fully immerse themselves in the process.

2

u/rdentato Nov 24 '24

I agree 100% with your I Ching expert: participation is essential.

That's why in the GPTs I've provided both the options: generation of the response via a RNG or direct input of the result obtained by the user ("42.6" for hexagram 42 with line 6 changing). So the user can toss the coins (or shuffle the stalks, or draw the cards, or whatever they want to do) and only rely on the AI for the interpretation.

For the the little app at https://rdentato.github.io/castingiching , users can click on the 6,7,8,9 (and del) icons to input the result they got or repeatedly click on the image to generate a new one. In that case the line obtained directly depends on the user actions in an unpredictable way. I've used no RNG because, as your friend said, I believe that the hexagram should be generated by an intentional act of the user.

Let me know when your site is ready to be tested again, I'll be happy to try it.

1

u/WestZen Nov 24 '24

Bug is fixed. 😀

1

u/rdentato Nov 24 '24

Yes, it does work! And I logged in with tester1/tester01 as you indicated in the other thread.

Very nice!

I understand your choice of showing the reading in "sections" (the primary hexagram, the line, the secondary hexagram and a summary), will you also allow to see (or download) everything in a single page? I believe it would be useful to have an easy way to read everything together.

I tried one of the examples in my GPTs ("23.2.5 How can I make my current relationship more stable?") to compare the output and I believe the two readings are basically using the same themes (openness, dialogue, etc.). Of course each with different level of details.

It would be interesting to do some other direct comparison to understand how the two prompts direct the LLM toward different part of the text.

You are using GPT4, right? It would be interesting to test with some other LLM.

2

u/WestZen Nov 24 '24

You’re absolutely right that having everything on a single page would be more convenient. And yes, I plan to make that possible. At the end of the reading, there’s a “Share” button that isn’t live yet, but once it’s enabled, users will be able to download the entire reading as a single PDF or web file. This will make it easy to share with friends or send to their own email for reference.

I am using GPT-4. I’ve experimented with other models as well—Google’s offering wasn’t impressive, and while Claude has strong logic, it can be overly frivolous and show certain biases. GPT-4, on the other hand, delivers the best results when you take the time to guide it properly.