Grumpy Old Man-
I probably should have voted 'a bit of both'. But my belief is that the stories which came prior to Abraham's lifetime were allegories, while the stories that took place within his lifetime and afterward can be seen as factual.
The Creation STory (or stories, to be more accurate) wee ritten for a people who already had another creation epic that they had learned during their time in Egypt. You can read that epic here:
www.theologywebsite.com/etext/egypt/creation.shtml
Note that in that creation story the first five days were devoted entirely to gods and goddesses creating other gods and goddesses. It was only on the sixth day that man and all the other animals were created together and then 'dumped' on the land.
The first Genesis creation story (Genesis 1:1 to 2:3) dealt directly with that epic. Under egyptian mythology those gods and goddesses that had been created were in the forms of stars, the sun, the moon, and the animals seen around them. But the author of Genesis (whom I personally accept as being Moses himself) 'stripped' all those object and animals of their divinity. The sun, moon and stars were merely objects which gave us light, and the animals that we saw around us were merely fellow creatures, and nothing more. Byt the time that Genesis 2:3 was reached, the only divinity left was an invisible God whom no one could build an idol to, because no one could no his appearance.
The second creation story (Genesis 2:4-25) separated man from all the other animals. Whereas the egyptian creation epic had simply 'lumped' him in with all the other animals, Genesis identified him as being created through a unique procedure not taken with the other animals. Even the breath of life was breathed into his nostrils from God himself, which is not recorded as having been done to any other animal.
Alone of the animals, man could talk to God, as we converse with each other. He was given the authority to name the other animals, a symbol of power over them. A special place was created in which he would live, caring for it and tending it. Even his spouse was created in a unique manner in orderto further differentiate him from the other animals.
And alone of the animals, man had the ability to choose, and therefore to violate God's orders. No other animal was capable of knowing what is good and what is evil; man is unique in having that knowledge to this day.
Even the serpent in the garden was an adaptation of egyptian mythology. We identify him as Satan, but in egyptian mythology he was Sebau. He and his minions were enemies of man, but Ra had defeated him in battle and rendered him legless, forcing him to crawl on the ground. You can read a reference to that in the book 'The Egyptian Book of the Dead'. It's under the heading 'A Hymn to Ra'.
But whereas Ra had needed to fight a battle with Sebau, God was able to accomplish the same purpose by his will alone.
The story of the fall of man is asgood as any to describe a unique situation we have yet today. We still see some acts as evil and other acts as good (the knowledge of good and evil). And we still recognize ourselves as having departed from the correct path when we choose to follow the path that is evil. The innocence which all other animals have is not part of our existence.
As for the other stories, They were the means whereby people could explain why something had happened, whether that was a natural catastrophe or the difference inherent in our languages. As an example, The Great Flood predates Genesis by centuries, and is believed to have originated as a way to explain the great floods that overwhelmed landmasses following the last Ice Age. The remains of what appear to be manmade structures have been found hundred's of feet below the surface of presentday seas. including The Black Sea, now a saltwater sea, but in ancient times a freshwater lake much shallower than it is now. Since the people would have made their homes near large bodies of water in order to get food, a rapid increase of the water level would have been seen as a major catastrophe to them.
I hope this helps-